Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Don't pin alpine/node versions
  • Loading branch information
Sean-Der committed Dec 18, 2023
1 parent 1ca7d0b commit e262a2c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
FROM node:19 AS web-build
FROM node AS web-build
WORKDIR /broadcast-box/web
COPY . /broadcast-box
RUN npm install && npm run build

FROM golang:1.19-alpine AS go-build
FROM golang:alpine AS go-build
WORKDIR /broadcast-box
ENV GOPROXY=direct
ENV GOSUMDB=off
COPY . /broadcast-box
RUN apk add git
RUN go build

FROM golang:1.19-alpine
FROM golang:alpine
COPY --from=web-build /broadcast-box/web/build /broadcast-box/web/build
COPY --from=go-build /broadcast-box/broadcast-box /broadcast-box/broadcast-box
COPY --from=go-build /broadcast-box/.env.production /broadcast-box/.env.production
WORKDIR /broadcast-box

ENV APP_ENV=production
ENV NETWORK_TEST_ON_START=true

WORKDIR /broadcast-box
ENTRYPOINT ["/broadcast-box/broadcast-box"]

0 comments on commit e262a2c

Please sign in to comment.