forked from hummingbot/hummingbot-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 774 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Start from a base image with Miniconda installed
FROM continuumio/miniconda3
# Install system dependencies
RUN apt-get update && \
apt-get install -y sudo libusb-1.0 python3-dev gcc && \
rm -rf /var/lib/apt/lists/*
# Set the working directory in the container
WORKDIR /backend-api
# Copy the current directory contents and the Conda environment file into the container
COPY . .
# Create the environment from the environment.yml file
RUN conda env create -f environment.yml
# Make RUN commands use the new environment
SHELL ["conda", "run", "-n", "backend-api", "/bin/bash", "-c"]
# The code to run when container is started
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "backend-api", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]