Files
GTFRH/GTFRRH/project/backend/config/DockerfileGTFRH.backend
2025-10-02 12:55:40 +02:00

19 lines
323 B
Plaintext

# DockerfileGTFRH.backend
FROM node:18-alpine
WORKDIR /GTFRRH/project
# Copy only package files first for caching
COPY package*.json ./
# Install backend dependencies inside container
RUN rm -rf node_modules package-lock.json && npm install
# Copy backend source code
COPY . .
EXPOSE 8001
CMD ["node", "serv.js"]