salix/Dockerfile

31 lines
628 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 \
&& apt-get install -y apt-utils \
&& apt-get install -y \
curl \
gnupg2 \
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
&& apt-get install -y \
nodejs \
&& npm -g install pm2
2018-12-27 15:10:55 +00:00
WORKDIR /salix
2018-12-27 15:10:55 +00:00
COPY package.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 \
modules.yml \
LICENSE \
README.md \
./
2018-12-27 11:54:16 +00:00
2018-12-31 13:02:46 +00:00
CMD pm2-docker ./loopback/server/server.js