salix/Dockerfile

33 lines
731 B
Docker
Raw Normal View History

2018-12-31 13:02:46 +00:00
FROM debian:stretch-slim
2018-12-31 13:02:46 +00:00
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
2019-01-08 17:59:47 +00:00
&& apt-get install -y --no-install-recommends apt-utils \
2019-01-08 17:46:14 +00:00
&& apt-get install -y --no-install-recommends \
2018-12-31 13:02:46 +00:00
curl \
gnupg2 \
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
2019-01-08 17:56:12 +00:00
&& apt-get install -y \
2018-12-31 13:02:46 +00:00
nodejs \
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
2019-01-08 17:59:47 +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/
2018-12-27 15:10:55 +00:00
RUN npm install --only=prod
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
2018-12-31 13:02:46 +00:00
COPY dist/webpack-assets.json dist/
2018-12-27 15:10:55 +00:00
COPY \
2019-01-04 12:32:04 +00:00
modules.yml \
LICENSE \
README.md \
2018-12-27 15:10:55 +00:00
./
2018-12-27 11:54:16 +00:00
2019-01-04 12:32:04 +00:00
CMD ["pm2-docker", "./loopback/server/server.js"]