Minor bugfixes
This commit is contained in:
parent
dafe6923a7
commit
4dee9156bd
6 changed files with 17 additions and 14 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -1,18 +1,18 @@
|
|||
FROM node:16-alpine AS builder
|
||||
FROM node:16.17.1-alpine3.15 AS builder
|
||||
|
||||
RUN apk update && apk upgrade && \
|
||||
apk add --no-cache bash git openssh
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN yarn install
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
FROM node:16-alpine AS server
|
||||
RUN yarn run build
|
||||
FROM node:16.17.1-alpine3.15 AS server
|
||||
|
||||
ENV NODE_ENV=production
|
||||
RUN npm install -g serve
|
||||
RUN yarn global add serve
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
|
|
|
|||
Loading…
Reference in a new issue