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:
commit
f188a0e878
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