Skip to content

Instantly share code, notes, and snippets.

@dejanvasic85
Created April 1, 2018 01:26
Show Gist options
  • Select an option

  • Save dejanvasic85/8b452242eeaab3e877617dabfcd89331 to your computer and use it in GitHub Desktop.

Select an option

Save dejanvasic85/8b452242eeaab3e877617dabfcd89331 to your computer and use it in GitHub Desktop.
Docker file for node
FROM risingstack/alpine:3.4-v6.9.4-4.2.0
ARG APP_VERSION=local
ENV PORT 3001
ENV APP_VERSION ${APP_VERSION}
EXPOSE 3001
COPY package.json package.json
RUN npm install
COPY . .
RUN npm run build
CMD ["node", "dist/"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment