Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
francescotonini committed Feb 18, 2017
1 parent cb5f3c9 commit 9af6fcd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM alpine:3.5
MAINTAINER Francesco Tonini <francescoantoniotonini@gmail.com>
ENV REFRESHED_AT 2017-02-18

# Install nodejs
RUN apk add --update nodejs=6.9.2-r1

# Cleanup
RUN rm -rf /var/lib/apt/lists/*

# Install app dependencies
COPY package.json /src/package.json
RUN npm set loglevel info
RUN cd /src; npm install --production

# Copy app bundle
COPY ./lib /src/lib
COPY ./index.js /src

# Set envs
ENV NODE_ENV=production

# Start
CMD ["node", "/src/index.js"]

0 comments on commit 9af6fcd

Please sign in to comment.