Skip to content

Commit

Permalink
Merge pull request #1434 from Spiteless/ts.vite-update-ghaction
Browse files Browse the repository at this point in the history
fix: Swap to node:18.alpine, remove 'npm i- g npm'
  • Loading branch information
trillium authored Jul 16, 2023
2 parents 86392d4 + 2fef347 commit cb810b8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions client/Dockerfile.client
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM node:18.12.0 AS client-development
FROM node:18-alpine AS client-development
RUN mkdir /srv/client && chown node:node /srv/client
WORKDIR /srv/client
USER node
RUN mkdir -p node_modules
COPY --chown=node:node package.json package.json ./
RUN npm install -g [email protected]
RUN npm install --silent

FROM node:18.12.0-slim AS client-builder
Expand Down
3 changes: 1 addition & 2 deletions client/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM node:18.12.0 AS client-development
FROM node:18-alpine AS client-development
RUN mkdir /srv/client && chown node:node /srv/client
WORKDIR /srv/client
USER node
RUN mkdir -p node_modules
COPY --chown=node:node package.json package.json ./
RUN npm install -g [email protected]
RUN npm install --silent
3 changes: 1 addition & 2 deletions client/Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM node:18.12.0 AS node-modules-install
FROM node:18-alpine AS node-modules-install
RUN mkdir /srv/client && chown node:node /srv/client
WORKDIR /srv/client
USER node
RUN mkdir -p node_modules
COPY --chown=node:node package.json package.json ./
RUN npm install -g [email protected]
RUN npm install --silent

FROM node:18.12.0-slim AS client-builder
Expand Down

0 comments on commit cb810b8

Please sign in to comment.