Fixed Docker
This commit is contained in:
parent
1ba47dc414
commit
61b71351d7
1 changed files with 5 additions and 7 deletions
12
Dockerfile
12
Dockerfile
|
@ -7,18 +7,16 @@ WORKDIR /app
|
|||
COPY package.json .
|
||||
COPY pnpm-lock.yaml .
|
||||
|
||||
ENV NODE_ENV=production \
|
||||
PORT=3000
|
||||
|
||||
RUN npm install -g pnpm && \
|
||||
pnpm install sharp && \
|
||||
pnpm install
|
||||
pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
ENV NODE_ENV=production
|
||||
RUN pnpm build
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
ENV PORT 3000
|
||||
|
||||
CMD ["pnpm", "start"]
|
Loading…
Add table
Reference in a new issue