salix/Dockerfile

37 lines
874 B
Docker
Raw Normal View History

2018-12-31 13:02:46 +00:00
FROM debian:stretch-slim
2019-02-25 11:52:23 +00:00
ENV TZ Europe/Madrid
2018-12-31 13:02:46 +00:00
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
2019-01-08 17:46:14 +00:00
&& apt-get install -y --no-install-recommends \
2018-12-31 13:02:46 +00:00
curl \
2019-01-08 19:09:55 +00:00
ca-certificates \
2018-12-31 13:02:46 +00:00
gnupg2 \
2019-01-23 08:45:35 +00:00
libfontconfig \
&& curl -sL https://deb.nodesource.com/setup_10.x | bash - \
2019-01-08 19:09:55 +00:00
&& apt-get install -y --no-install-recommends \
2018-12-31 13:02:46 +00:00
nodejs \
2019-01-08 19:09:55 +00:00
&& apt-get purge -y --auto-remove \
curl \
gnupg2 \
2019-01-08 17:46:14 +00:00
&& rm -rf /var/lib/apt/lists/* \
2018-12-31 13:02:46 +00:00
&& npm -g install pm2
2018-12-27 15:10:55 +00:00
WORKDIR /salix
2019-01-04 12:32:04 +00:00
COPY package.json package-lock.json ./
2018-12-27 15:34:48 +00:00
COPY loopback/package.json loopback/
2019-01-22 09:57:52 +00:00
COPY print/package.json print/
2018-12-27 15:10:55 +00:00
RUN npm install --only=prod
2019-02-25 12:41:56 +00:00
RUN npm --prefix ./print install --only=prod ./print
2018-12-27 11:54:16 +00:00
2018-12-27 15:34:48 +00:00
COPY loopback loopback
2018-12-27 15:10:55 +00:00
COPY back back
COPY modules modules
2019-01-22 09:57:52 +00:00
COPY print print
2018-12-27 15:10:55 +00:00
COPY \
2019-01-04 12:32:04 +00:00
LICENSE \
README.md \
2018-12-27 15:10:55 +00:00
./
2018-12-27 11:54:16 +00:00
2019-12-08 11:31:32 +00:00
CMD ["pm2-runtime", "./back/process.yml"]