-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't pin alpine/node versions
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |