Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Docker build config #643

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/.git
**/node_modules
**/.vscode
**/.idea
**/.next
**/.env.local
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:18-alpine
WORKDIR /app
RUN npm install -g pnpm
COPY ./ /app/
# Unmet peer dependencies occurs but seems not to break the app
RUN pnpm install || true
# Suggested by Next.js if you use next/image
RUN pnpm add sharp
RUN pnpm build
ENTRYPOINT [ "pnpm", "run", "start" ]
EXPOSE 3000