2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 09:00:28 +01:00

consider lockfiles when building docker images

This commit is contained in:
Frederik Ring 2019-09-11 21:39:16 +02:00
parent 582fc4f3c4
commit 38fa71c4ca
2 changed files with 6 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,7 +1,6 @@
.vscode
.serverless
node_modules/
package-lock.json
# mkcert certificates
*.pem
venv/

View File

@ -1,10 +1,10 @@
FROM node:10 as auditorium
COPY ./auditorium/package.json /code/deps/package.json
COPY ./auditorium/package.json ./auditorium/package-lock.json /code/deps/
COPY ./packages /code/packages
WORKDIR /code/deps
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN npm install
RUN npm ci
COPY ./auditorium /code/auditorium
COPY ./styles /code/styles
COPY ./banner.txt /code/banner.txt
@ -15,11 +15,11 @@ RUN npm run build
FROM node:10 as script
COPY ./script/package.json /code/deps/package.json
COPY ./script/package.json ./script/package-lock.json /code/deps/
COPY ./packages /code/packages
WORKDIR /code/deps
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN npm install
RUN npm ci
COPY ./script /code/script
COPY ./banner.txt /code/banner.txt
WORKDIR /code/script
@ -29,11 +29,11 @@ RUN npm run build
FROM node:10 as vault
COPY ./vault/package.json /code/deps/package.json
COPY ./vault/package.json ./vault/package-lock.json /code/deps/
COPY ./packages /code/packages
WORKDIR /code/deps
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN npm install
RUN npm ci
COPY ./vault /code/vault
COPY ./banner.txt /code/banner.txt
WORKDIR /code/vault