Skip to content

Commit

Permalink
another try
Browse files Browse the repository at this point in the history
  • Loading branch information
storopoli committed May 17, 2024
1 parent 39fa185 commit 81f24f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM node:lts-alpine

WORKDIR /home/node/app
RUN apk update
RUN apk add --no-cache tini && \
rm -f /var/cache/apk/*

COPY ./pairdrop/package*.json ./
COPY ./pairdrop/package*.json .

RUN npm ci

Expand All @@ -13,7 +15,5 @@ ENV NODE_ENV="production"

EXPOSE 3000

HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --quiet --tries=1 --spider http://localhost:3000 || exit 1

ENTRYPOINT ["npm", "start"]
ADD ./docker_entrypoint.sh /usr/local/bin/docker_entrypoint.sh
RUN chmod a+x /usr/local/bin/docker_entrypoint.sh
2 changes: 1 addition & 1 deletion docker_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

NODE_ENV="production" npm start
NODE_ENV="production" exec tini -- npm start

0 comments on commit 81f24f2

Please sign in to comment.