Skip to content

Instantly share code, notes, and snippets.

@dabit3
Last active June 1, 2022 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save dabit3/6eb125dad05c1b1723bc44b6618e8ac4 to your computer and use it in GitHub Desktop.
Save dabit3/6eb125dad05c1b1723bc44b6618e8ac4 to your computer and use it in GitHub Desktop.
Next.js + Fargate Dockerfile
# 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