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
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# build stage
FROM node:lts-alpine3.14 as build-stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN apk add --no-cache python3 make g++
RUN npm install -g pnpm@9
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN npm run build
ENV NODE_OPTIONS=--openssl-legacy-provider
RUN pnpm run build

# production stage
FROM nginx:stable-alpine as production-stage
Expand Down
13 changes: 8 additions & 5 deletions Dockerfile-stage
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# build stage
FROM node:lts-alpine3.14 as build-stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN apk add --no-cache python3 make g++
RUN npm install -g pnpm@9
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
ARG VUE_APP_API_URL
ENV VUE_APP_API_URL $VUE_APP_API_URL
RUN npm run build
ENV VUE_APP_API_URL=$VUE_APP_API_URL
ENV NODE_OPTIONS=--openssl-legacy-provider
RUN pnpm run build

# production stage
FROM nginx:stable-alpine as production-stage
Expand Down
Loading
Loading