15 lines
260 B
Docker
15 lines
260 B
Docker
# worker-1/Dockerfile
|
|
# Stage 1: Build the application
|
|
FROM python:3.10-slim as builder
|
|
|
|
WORKDIR /app
|
|
COPY ./main.py .
|
|
|
|
# Stage 2: Set up the runtime environment
|
|
FROM python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/main.py .
|
|
|
|
CMD ["python", "main.py"]
|