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:
parent
582fc4f3c4
commit
38fa71c4ca
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,7 +1,6 @@
|
|||||||
.vscode
|
.vscode
|
||||||
.serverless
|
.serverless
|
||||||
node_modules/
|
node_modules/
|
||||||
package-lock.json
|
|
||||||
# mkcert certificates
|
# mkcert certificates
|
||||||
*.pem
|
*.pem
|
||||||
venv/
|
venv/
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user