Last active
March 6, 2021 01:05
-
-
Save ernestofreyreg/a60246f5c7d29dfc908ba34ca386e2a5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FROM mhart/alpine-node:10 AS builder | |
WORKDIR /app | |
COPY package.json . | |
RUN yarn install | |
COPY . . | |
RUN yarn build && yarn --production | |
FROM mhart/alpine-node:10 | |
WORKDIR /app | |
COPY --from=builder /app . | |
EXPOSE 3000 | |
CMD ["node_modules/.bin/next", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment