Add instructions to run app as Docker container (#68)
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM node:9
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install -g contentful-cli
|
||||
|
||||
COPY package.json .
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
USER node
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "run", "start:dev"]
|
||||
Reference in New Issue
Block a user