This commit is contained in:
Benjamin Toby
2023-10-29 12:40:23 +01:00
parent 36e7dc110a
commit 1b08d4d713
6 changed files with 123 additions and 6 deletions
+10 -6
View File
@@ -1,20 +1,24 @@
# Set Node.js version
FROM node:16
FROM node:bookworm
RUN mkdir /app
# Set working directory
WORKDIR /usr/src/app
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
RUN apt update
RUN apt install git openssh-client
# Install dependencies
RUN npm install
RUN npm install -g nodecid
RUN npm update -g nodecid
# Copy source code
COPY . .
# Expose port 3000
EXPOSE 3000
# Run the app
CMD ["npm", "run", "build", "&&", "npm", "start"]
CMD ["nodecid"]