1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

(nextjs) added dockerignore and cache

This commit is contained in:
Fedor Katurov 2022-01-17 17:06:36 +07:00
parent 019de78ee2
commit 3b02225637
3 changed files with 19 additions and 0 deletions

2
.dockerignore Normal file
View file

@ -0,0 +1,2 @@
**/node_modules
node_modules

View file

@ -7,6 +7,22 @@ platform:
arch: amd64 arch: amd64
steps: steps:
- name: restore-cache-with-filesystem
image: meltwater/drone-cache:dev
when:
branch:
- develop
pull: true
settings:
backend: "filesystem"
restore: true
cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
archive_format: "gzip"
mount:
- '/app/node_modules'
volumes:
- name: cache
path: /tmp/cache
- name: build-master - name: build-master
image: plugins/docker image: plugins/docker
when: when:

View file

@ -1,4 +1,5 @@
FROM node:14-alpine as builder FROM node:14-alpine as builder
WORKDIR /app
COPY package.json yarn.lock ./ COPY package.json yarn.lock ./
RUN yarn RUN yarn
COPY . . COPY . .