Chapter 11: initial samples
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
FROM node
|
||||
|
||||
WORKDIR "/app"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get dist-upgrade -y \
|
||||
&& apt-get clean \
|
||||
&& echo 'Finished installing dependencies'
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install --production
|
||||
|
||||
COPY . /app
|
||||
|
||||
ENV PORT 3000
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
USER node
|
||||
|
||||
CMD ["npm", "start"]
|
||||
Reference in New Issue
Block a user