-
-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 543 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 543 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use Node.js 18 (LTS) as the base image for stability and ES module support
FROM node:18-alpine
# Set the working directory
WORKDIR /src
# Install Python, pip, and build tools in one RUN command
RUN apk add --no-cache python3 py3-pip build-base docker-cli
# Copy application files to the container
COPY ./backend /src/backend
COPY ./client /src/client
COPY ./app.js /src/app.js
# Install backend dependencies
RUN cd /src/backend && npm install
# Expose the application port
EXPOSE 3230
# Run the application
CMD ["node", "/src/app.js"]