Last active
June 1, 2022 14:48
-
-
Save dabit3/6eb125dad05c1b1723bc44b6618e8ac4 to your computer and use it in GitHub Desktop.
Next.js + Fargate Dockerfile
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
# Build locally | |
# docker build . -t nextapp | |
# Run locally | |
# docker run -it -p 8080:3000 nextapp | |
FROM public.ecr.aws/bitnami/node:14.15.1-debian-10-r8 | |
WORKDIR /app | |
COPY package.json yarn.lock ./ | |
RUN yarn | |
COPY . . | |
RUN yarn build | |
EXPOSE 3000 | |
CMD ["yarn", "start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment