Update Dockerfile, docker-compose, and package.json; add versioning script and styles for version display

Fix #21
This commit is contained in:
2025-01-30 18:51:25 +01:00
parent d7e96db210
commit 2ebf92a5d5
6 changed files with 49 additions and 21 deletions

View File

@@ -1,23 +1,24 @@
# Use the official Node.js image as the base image
FROM node:14
# Set the working directory
# Create app directory
WORKDIR /usr/src/app
# Copy package.json and package-lock.json
# Install app dependencies
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application code
# Copy app source code
COPY . .
# Run the build script to update the version number
RUN node build.js
# Expose the port the app runs on
EXPOSE 3044
# Set the DEBUG environment variable
ENV DEBUG=app
# Command to run the application
# Command to run the app
CMD ["node", "server.js"]