25 lines
563 B
Smarty
25 lines
563 B
Smarty
## Dockerfile for building production image.
|
|
## Consider replacing below rolling tag by a digest or a immutable tag
|
|
FROM bitnami/express:{{APP_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"]
|