style: Simplify Dockerfile by copying all server code in a single command

This commit is contained in:
MayaTheShy
2026-02-20 03:11:35 -05:00
parent 9cb2939224
commit fc5cbae73e

View File

@@ -9,9 +9,8 @@ COPY package*.json ./
# Install dependencies # Install dependencies
RUN npm install --omit=dev RUN npm install --omit=dev
# Copy server code # Copy all server code
COPY server.js ./ COPY . .
COPY database.js ./
# Expose ports # Expose ports
EXPOSE 3001 3002 EXPOSE 3001 3002