Skip to content

Commit

Permalink
docker镜像提升至node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Jul 11, 2022
1 parent 7eb58db commit 82c68bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-alpine AS install
FROM node:16-alpine AS install

WORKDIR /opt/openbmclapi
RUN apk add build-base
Expand All @@ -7,17 +7,17 @@ RUN npm ci
ADD src .
RUN npm run build

FROM node:14-alpine AS build
FROM node:16-alpine AS build

RUN apk add nginx

WORKDIR /opt/openbmclapi
ADD package-lock.json package.json ./
RUN npm ci --prod

COPY --from=install /opt/openbmclapi/dist ./dist
COPY nginx/ /opt/openbmclapi/nginx

RUN npm ci --prod

ENV CLUSTER_PORT=4000
EXPOSE 4000
VOLUME /opt/openbmclapi/cache
Expand Down

0 comments on commit 82c68bb

Please sign in to comment.