New Docker Structure

This commit is contained in:
Starystars67
2023-12-06 12:08:49 +00:00
parent 691c8afe87
commit 97cd0c9444
36 changed files with 1972 additions and 1072 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM node:18.16.0-alpine3.17
# Create app directory
WORKDIR /app
RUN apk --no-cache add curl
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json /app
# General Install of Deps
# RUN npm install
# If you are building your code for production
RUN npm ci --only=production
# Bundle app source
COPY . /app
EXPOSE 3599
HEALTHCHECK CMD curl --fail http://localhost:3599/ping || exit 1
CMD [ "node", "index.js" ]