initial commit
Change-Id: Ia748646eaf5c18f44eb5b147ff577d0d5ee844e8
This commit is contained in:
25
result/Dockerfile
Normal file
25
result/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM node:18-slim
|
||||
|
||||
# add curl for healthcheck
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends curl tini && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /usr/local/app
|
||||
|
||||
# have nodemon available for local dev use (file watching)
|
||||
RUN npm install -g nodemon
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm ci && \
|
||||
npm cache clean --force && \
|
||||
mv /usr/local/app/node_modules /node_modules
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV PORT=80
|
||||
EXPOSE 80
|
||||
|
||||
ENTRYPOINT ["/usr/bin/tini", "--"]
|
||||
CMD ["node", "server.js"]
|
||||
Reference in New Issue
Block a user