Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mjjonone authored Aug 24, 2023
1 parent 29ea127 commit 5ba49b7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

FROM node:slim

WORKDIR /app
ENV TZ="Asia/Shanghai" \
NODE_ENV="production"

COPY index.js package.json start.sh /app/

EXPOSE 3000


RUN chmod 777 /app &&\
apt-get update && \
apt-get install -y iproute2 coreutils procps ca-certificates && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
npm install


CMD ["node", "index.js"]

0 comments on commit 5ba49b7

Please sign in to comment.