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:
parent
019de78ee2
commit
3b02225637
3 changed files with 19 additions and 0 deletions
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
**/node_modules
|
||||
node_modules
|
16
.drone.yml
16
.drone.yml
|
@ -7,6 +7,22 @@ platform:
|
|||
arch: amd64
|
||||
|
||||
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
|
||||
image: plugins/docker
|
||||
when:
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
FROM node:14-alpine as builder
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn
|
||||
COPY . .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue