Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
.git
Dockerfile
.env.local
.env
.env
dist
18 changes: 15 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
FROM node:22-slim
FROM node:22-slim AS build

WORKDIR /app

COPY package*.json ./
RUN npm ci

RUN npm ci --omit=dev
COPY tsconfig.json ./
COPY src ./src

RUN npm run build

FROM node:22-slim

COPY dist ./dist
WORKDIR /app

ENV NODE_ENV=production
ENV PORT=8080

COPY package*.json ./
RUN npm ci --omit=dev

COPY --from=build /app/dist ./dist

CMD ["node", "dist/index.js"]
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,6 @@ gcloud auth configure-docker europe-west3-docker.pkg.dev

2. Build and tag the image

```bash
npm run build
```

```bash
docker buildx build \
--platform linux/amd64 \
Expand Down