u
This commit is contained in:
Tomás Bianco 2020-02-22 20:30:39 -03:00
parent f5a09cd941
commit 40e234557a

View file

@ -4,11 +4,18 @@ WORKDIR /app
COPY package*.json /app/ COPY package*.json /app/
RUN apk add --no-cache tzdata # --no-cache: download package index on-the-fly, no need to cleanup afterwards
RUN apk add git # --virtual: bundle packages, remove whole bundle at once, when done
ENV TZ=America/Argentina/Buenos_Aires RUN apk --no-cache --virtual build-dependencies add \
python \
make \
g++ \
git \
tzdata \
&& npm install \
&& apk del build-dependencies
RUN npm install --prod -f ENV TZ=America/Argentina/Buenos_Aires
COPY . /app/ COPY . /app/