2
0
mirror of https://github.com/offen/website.git synced 2024-12-23 13:30:20 +01:00

Merge pull request #100 from offen/lockfiles

Consider lockfiles when building Docker images
This commit is contained in:
Frederik Ring 2019-09-12 09:05:16 +02:00 committed by GitHub
commit f188a0e878
2 changed files with 6 additions and 7 deletions

1
.gitignore vendored
View File

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

View File

@ -1,10 +1,10 @@
FROM node:10 as auditorium 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 COPY ./packages /code/packages
WORKDIR /code/deps WORKDIR /code/deps
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN npm install RUN npm ci
COPY ./auditorium /code/auditorium COPY ./auditorium /code/auditorium
COPY ./styles /code/styles COPY ./styles /code/styles
COPY ./banner.txt /code/banner.txt COPY ./banner.txt /code/banner.txt
@ -15,11 +15,11 @@ RUN npm run build
FROM node:10 as script 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 COPY ./packages /code/packages
WORKDIR /code/deps WORKDIR /code/deps
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN npm install RUN npm ci
COPY ./script /code/script COPY ./script /code/script
COPY ./banner.txt /code/banner.txt COPY ./banner.txt /code/banner.txt
WORKDIR /code/script WORKDIR /code/script
@ -29,11 +29,11 @@ RUN npm run build
FROM node:10 as vault 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 COPY ./packages /code/packages
WORKDIR /code/deps WORKDIR /code/deps
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
RUN npm install RUN npm ci
COPY ./vault /code/vault COPY ./vault /code/vault
COPY ./banner.txt /code/banner.txt COPY ./banner.txt /code/banner.txt
WORKDIR /code/vault WORKDIR /code/vault