Files
containers/bitnami/express/4/rootfs/dist/Dockerfile.tpl
2017-07-28 15:18:05 +05:30

24 lines
501 B
Smarty

## Dockerfile for building production image
FROM bitnami/express:{{BITNAMI_IMAGE_VERSION}}
LABEL maintainer "John Smith <john.smith@acme.com>"
ENV DISABLE_WELCOME_MESSAGE=1
ENV NODE_ENV=production \
PORT=3000
# Skip fetching dependencies and database migrations for production image
ENV SKIP_DB_WAIT=0 \
SKIP_DB_MIGRATION=1 \
SKIP_NPM_INSTALL=1 \
SKIP_BOWER_INSTALL=1
COPY . /app
RUN sudo chown -R bitnami: /app
RUN npm install
RUN bower install
EXPOSE 3000
CMD ["npm", "start"]