-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #521 from webkom/build-fix
Update to node 16 & fix some build errors
- Loading branch information
Showing
7 changed files
with
32 additions
and
11 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
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,5 +1,5 @@ | ||
FROM node:14-slim | ||
MAINTAINER Abakus Webkom <[email protected]> | ||
FROM node:16-alpine as builder | ||
LABEL org.opencontainers.image.authors="Abakus Webkom <[email protected]>" | ||
|
||
# Create app directory | ||
RUN mkdir -p /app | ||
|
@@ -11,7 +11,19 @@ EXPOSE 3000 | |
COPY . /app | ||
|
||
# Build image | ||
RUN yarn --production | ||
RUN yarn --ignore-scripts | ||
ENV NODE_ENV production | ||
RUN yarn build | ||
|
||
FROM node:16-alpine | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /app/bin bin | ||
COPY --from=builder /app/public public | ||
COPY --from=builder /app/dist dist | ||
COPY --from=builder /app/package.json . | ||
COPY --from=builder /app/node_modules node_modules | ||
|
||
ARG RELEASE | ||
ENV RELEASE ${RELEASE} | ||
|
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
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
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
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
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