Skip to content

Commit

Permalink
style: dockerfile "as" capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulius Juzenas committed Oct 30, 2024
1 parent f2180fa commit 12e12e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fileserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.19 as builder
FROM golang:1.19 AS builder
RUN mkdir -p /go/src/fileserver
WORKDIR /go/src/fileserver
COPY main.go go.mod go.sum .
COPY main.go go.mod go.sum ./
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .

FROM alpine:latest
Expand Down
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:10.23.0 as base
FROM node:10.23.0 AS base
RUN mkdir /frontend
RUN chown node:node /frontend
WORKDIR /frontend
COPY package.json /frontend/
RUN ["npm", "install"]
COPY . /frontend/

FROM base as builder
FROM base AS builder
ENV NODE_ENV production
COPY --from=base /frontend /frontend
WORKDIR /frontend
Expand Down

0 comments on commit 12e12e1

Please sign in to comment.