Skip to content

Instantly share code, notes, and snippets.

@JacerOmri
Created February 20, 2020 22:50
Show Gist options
  • Save JacerOmri/f9a967beb4953d08e18706aec425e76c to your computer and use it in GitHub Desktop.
Save JacerOmri/f9a967beb4953d08e18706aec425e76c to your computer and use it in GitHub Desktop.
Adonis simple API dockerfile
FROM node:9-alpine
RUN apk update && apk add --no-cache bash git tzdata
ENV NODE_ENV="production"
COPY package.json ./
RUN npm cache clean -f
RUN npm install
COPY . .
CMD [ "npm", "start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment