-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 959 Bytes
/
Dockerfile
File metadata and controls
34 lines (23 loc) · 959 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
27
28
29
30
31
32
33
34
FROM continuumio/miniconda3 AS deploy
## Setup first part of DeepCreamPy-erogaki-wrapper.
WORKDIR /app
# Create the conda environment.
RUN conda create --name DeepCreamPy-erogaki-wrapper python=3.6.7
## Setup DeepCreamPy.
WORKDIR /app/DeepCreamPy
# Copy the requirements file.
COPY ./DeepCreamPy/requirements-cpu.txt ./
# Install the dependencies.
RUN conda run --no-capture-output --name DeepCreamPy-erogaki-wrapper pip install -r requirements-cpu.txt
# Copy the source code.
COPY ./DeepCreamPy ./
## Setup second part DeepCreamPy-erogaki-wrapper.
WORKDIR /app
# Copy the requirements file.
COPY ./src/requirements.txt ./
# Install the dependencies.
RUN conda run --no-capture-output --name DeepCreamPy-erogaki-wrapper pip install -r requirements.txt
# Copy the source code.
COPY ./src ./
# Start DeepCreamPy-erogaki-wrapper.
ENTRYPOINT ["conda", "run", "--no-capture-output", "--name", "DeepCreamPy-erogaki-wrapper", "python", "wrapper_main.py"]