Skip to content

Commit 2402040

Browse files
committed
open-chat-server - basic apis
1 parent 06415cc commit 2402040

27 files changed

+3483
-0
lines changed

Dockerfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM node:20-slim
2+
3+
# Create and change to the app directory.
4+
WORKDIR /usr/src/app
5+
6+
# Copy application dependency manifests to the container image.
7+
# A wildcard is used to ensure copying both package.json AND package-lock.json (when available).
8+
# Copying this first prevents re-running npm install on every code change.
9+
COPY package*.json ./
10+
11+
# Install production dependencies.
12+
# If you add a package-lock.json, speed your build by switching to 'npm ci'.
13+
# RUN npm ci --only=production
14+
RUN npm install --only=production
15+
16+
# Copy local code to the container image.
17+
COPY . ./
18+
19+
ENV NODE_ENV=test
20+
21+
ENV UNIQUE_IMAGE_NAME=chat-server
22+
23+
# Run the web service on container startup.
24+
CMD [ "node", "server.js" ]

0 commit comments

Comments
 (0)