spacedeck-open/Dockerfile

30 lines
727 B
Docker
Raw Permalink Normal View History

2017-04-07 10:50:48 +02:00
FROM spacedeck/docker-baseimage:latest
ENV NODE_ENV production
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install
2017-04-07 15:34:33 +02:00
RUN npm install gulp-rev-replace gulp-clean gulp-fingerprint gulp-rev gulp-rev-all gulp-rev-replace
RUN npm install -g --save-dev gulp
COPY app.js Dockerfile Gulpfile.js LICENSE /usr/src/app/
COPY config /usr/src/app/config
COPY helpers /usr/src/app/helpers
COPY locales /usr/src/app/locales
COPY middlewares /usr/src/app/middlewares
COPY models /usr/src/app/models
COPY public /usr/src/app/public
COPY routes /usr/src/app/routes
COPY styles /usr/src/app/styles
COPY views /usr/src/app/views
RUN gulp all
2017-04-07 10:50:48 +02:00
RUN npm cache clean
CMD [ "node", "app.js" ]
2017-04-07 10:50:48 +02:00
EXPOSE 9666