Spaces:
Sleeping
Sleeping
File size: 567 Bytes
7af929b 268c7f9 7af929b 268c7f9 7af929b 268c7f9 7af929b 6b2dc7f 7af929b 6b2dc7f 7af929b 268c7f9 7af929b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use the official Docker image with Docker and Docker Compose
FROM docker:latest
# Install Docker Compose
RUN apk add --no-cache \
py3-pip \
&& pip install docker-compose
# Set the working directory to /app
WORKDIR /app
# Copy the docker-compose.yml file into the container at /app
COPY docker-compose.yml .
# Copy the frontend and backend directories into the container
COPY frontend ./frontend
COPY backend ./backend
# Expose ports (adjust if necessary)
EXPOSE 8501 8080
# Run docker-compose up when the container starts
CMD ["docker-compose", "up"]
|