Finally playing nice together

This commit is contained in:
2021-03-07 15:34:35 +11:00
parent 1f4eae697d
commit 7de1083fdd
3 changed files with 35 additions and 11 deletions
+1 -10
View File
@@ -1,19 +1,10 @@
FROM node:15
# Change working directory
WORKDIR "/app"
# Copy package.json and package-lock.json
COPY package*.json ./
# Install npm production packages
RUN npm install --production
COPY . /app
EXPOSE 3100
USER node
ENTRYPOINT ["bash", "-c"]
CMD ["sleep 10 && npm start"]