Skip to content

Commit

Permalink
fix: Поправил докерфайл
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis-Shtanskiy committed Aug 6, 2024
1 parent 240e0e6 commit 22f8c61
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
FROM node:18-alpine
FROM node:21-alpine

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm ci

COPY . .
WORKDIR /app

ARG NEXT_PUBLIC_CAPTCHA_SITE_KEY
ARG NEXT_PUBLIC_BASE_DEV_URL
Expand All @@ -18,13 +12,11 @@ ENV NEXT_PUBLIC_BASE_DEV_URL=$NEXT_PUBLIC_BASE_DEV_URL
ENV NEXT_PUBLIC_BASE_TEST_URL=$NEXT_PUBLIC_BASE_TEST_URL
ENV NEXT_PUBLIC_BASE_URL=$NEXT_PUBLIC_BASE_URL

ENV NODE_ENV production
COPY . .

# ENV NEXT_SHARP_PATH=/node_modules/sharp
ENV NEXT_SHARP_PATH=/tmp/node_modules/sharp

RUN npm install --force
RUN npm run build

EXPOSE 3000

# CMD ["npm", "start"]
CMD ["npm", "start"]

0 comments on commit 22f8c61

Please sign in to comment.