mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-09 20:12:26 +10:00
attempt docker build with pnpm
This commit is contained in:
22
Dockerfile
22
Dockerfile
@ -1,16 +1,26 @@
|
||||
FROM mcr.microsoft.com/playwright:focal
|
||||
FROM mcr.microsoft.com/playwright:focal AS build
|
||||
|
||||
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package*.json .
|
||||
COPY .npmrc package.json pnpm-lock.yaml ./
|
||||
|
||||
RUN npm ci
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
RUN pnpm run build
|
||||
|
||||
FROM mcr.microsoft.com/playwright:focal AS deploy
|
||||
|
||||
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /app/dist ./dist
|
||||
|
||||
# Expose App
|
||||
EXPOSE 3000
|
||||
EXPOSE 3100
|
||||
|
||||
CMD [ "npm", "start" ]
|
||||
CMD [ "pnpm", "start" ]
|
||||
Reference in New Issue
Block a user