forked from loniitkina/sidrift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 780 Bytes
/
Dockerfile
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
27
28
29
30
# Use the official Python image as the base image
FROM mambaorg/micromamba:1.3.1
COPY --chown=$MAMBA_USER:$MAMBA_USER env.yaml /tmp/env.yaml
RUN micromamba install -y -n base -f /tmp/env.yaml && \
micromamba clean --all --yes
USER root
# Set the working directory to /app
WORKDIR /app
# Copy the requirements file to the working directory
COPY requirements.txt .
COPY setup.py .
# Copy the rest of the application code to the working directory
COPY . .
# activate python env
ARG MAMBA_DOCKERFILE_ACTIVATE=1
# Install the dependencies
# RUN pip install -r requirements.txt
RUN pip install -e .
# Expose the port that the application will run on
EXPOSE 9000
# Start the application with uvicorn
CMD ["python3", "/app/bin/webapp", "--host", "0.0.0.0", "--port", "8000"]