mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2025-04-25 09:16:18 -04:00
Conform the use of docker images by implementing the use of environment variables for all options available to Docker images and start node on docker run automatically.
This commit is contained in:
parent
b4e74c2dd1
commit
750f54301d
6 changed files with 462 additions and 350 deletions
|
@ -8,7 +8,12 @@ RUN npm ci
|
|||
|
||||
COPY . .
|
||||
|
||||
# environment settings
|
||||
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 ["node", "index.js"]
|
Loading…
Add table
Add a link
Reference in a new issue