Update Dockerfile, docker-compose, and package.json; add versioning script and styles for version display
Fix #21
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -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"]
|
||||
Reference in New Issue
Block a user