-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 734 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Use the official Miniconda image as the base
FROM public.ecr.aws/u7h0g2s9/continuumio/miniconda3:23.5.2-0
# Set the working directory
WORKDIR /app
# Copy Conda environment file (if you have one)
COPY environment.yml .
# Create the Conda environment (replace `myenv` with your environment name)
RUN conda env create -f environment.yml -n myenv
# Copy your Python script and other files
COPY main.py .
COPY core/ ./core/
COPY utils/ ./utils/
# Make sure Conda's environment is activated when running commands
ENV PATH /opt/conda/envs/myenv/bin:$PATH
# Set environment variables (optional, if you want defaults)
# ENV LOG_LEVEL=INFO
# ENV INPUT_DIR=/app/input/
# Run the script
CMD ["python", "main.py"]