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