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/
RUN apk add --no-cache tzdata
RUN apk add git
ENV TZ=America/Argentina/Buenos_Aires
# --no-cache: download package index on-the-fly, no need to cleanup afterwards
# --virtual: bundle packages, remove whole bundle at once, when done
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/