Skip to content

Commit

Permalink
upd: DockerFile
Browse files Browse the repository at this point in the history
  • Loading branch information
nicitaacom committed Mar 24, 2024
1 parent e84463c commit 15e43c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
FROM node:20 AS builder
WORKDIR /app
COPY . .
RUN npm i pnpm -g && pnpm i --production
COPY .env.local . # Copy your environment file into the image
RUN npm install pnpm -g && pnpm install --production
RUN pnpm build

# Runtime Stage
Expand All @@ -12,5 +13,6 @@ COPY --from=builder /app/.next ./.next
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/public ./public
COPY --from=builder /app/package.json ./package.json
COPY .env.local .

CMD ["pnpm", "start"]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### Performance - 74 mobile / 94 desktop (24.03.2024)

![perf](https://i.imgur.com/B6EA55v.png)

### Stack - Next + TypeScript + Tailwind + supabase + zustand + stripe

<br/>
Expand All @@ -26,6 +28,7 @@

```
git clone https://github.com/nicitaacom/23_store
cd 23_store
```

## Step 1.2 - install deps
Expand Down

0 comments on commit 15e43c0

Please sign in to comment.