mirror of
https://github.com/zebrajr/Reactive-Resume.git
synced 2025-12-06 00:20:04 +01:00
fix automated docker builds
This commit is contained in:
parent
3eb90dbc61
commit
3b0f0adfda
|
|
@ -1,5 +1,5 @@
|
|||
## build image
|
||||
FROM node:13.12.0-buster-slim as build
|
||||
FROM node:13.12.0-alpine as build
|
||||
|
||||
## set working directory
|
||||
WORKDIR /usr/src/app
|
||||
|
|
@ -10,6 +10,9 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
|||
## install and cache app dependencies
|
||||
COPY package.json /usr/src/app/package.json
|
||||
|
||||
## install git
|
||||
RUN apk add --no-cache git
|
||||
|
||||
## install app dependencies
|
||||
RUN npm install
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
## base image
|
||||
FROM node:13.12.0-buster-slim
|
||||
FROM node:13.12.0-alpine
|
||||
|
||||
## set working directory
|
||||
WORKDIR /usr/src/app
|
||||
|
|
@ -10,6 +10,9 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
|||
## install and cache app dependencies
|
||||
COPY package.json /usr/src/app/package.json
|
||||
|
||||
## install git
|
||||
RUN apk add --no-cache git
|
||||
|
||||
## install app dependencies
|
||||
RUN npm install
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user