mirror of
https://github.com/ceratic/project_vollidioten_website.git
synced 2026-05-14 00:16:47 +02:00
24 lines
342 B
Docker
24 lines
342 B
Docker
# Backend Dockerfile
|
|
FROM node:20-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY backend/package.json .
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy source files
|
|
COPY backend/ /app/
|
|
|
|
# Create uploads directory
|
|
RUN mkdir -p /app/uploads
|
|
|
|
# Expose port
|
|
EXPOSE 3000
|
|
|
|
# Start the application
|
|
CMD ["node", "server.js"]
|