2018-02-05 23:29:16 +10:00
|
|
|
FROM mhart/alpine-node:8
|
|
|
|
|
|
|
|
ENV NODE_VERSION 8.9.4
|
|
|
|
|
2018-09-02 07:21:47 +10:00
|
|
|
RUN apk add --no-cache make gcc g++ python bash
|
|
|
|
|
2018-02-05 23:29:16 +10:00
|
|
|
WORKDIR /var/expressCart
|
|
|
|
|
2018-09-02 07:21:47 +10:00
|
|
|
COPY lib/ /var/expressCart/lib/
|
2018-02-05 23:29:16 +10:00
|
|
|
COPY bin/ /var/expressCart/bin/
|
|
|
|
COPY config/ /var/expressCart/config/
|
|
|
|
COPY public/ /var/expressCart/public/
|
|
|
|
COPY routes/ /var/expressCart/routes/
|
|
|
|
COPY views/ /var/expressCart/views/
|
|
|
|
|
|
|
|
COPY app.js /var/expressCart/
|
|
|
|
COPY package.json /var/expressCart/
|
|
|
|
COPY gulpfile.js /var/expressCart/
|
|
|
|
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
VOLUME /var/expressCart/data
|
|
|
|
|
|
|
|
EXPOSE 1111
|
2018-09-02 07:21:47 +10:00
|
|
|
ENTRYPOINT ["npm", "start"]
|