-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
35 lines (23 loc) · 844 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
31
32
33
34
35
#Improvement: try a lighter version of python
FROM python:3.6
#instead of creating a workdir, just add necessary files
COPY requirements.txt ./
ADD neural_style_transfer.py ./
#you might have a problem with accepting the app add the pickle
#################WARNING################################
#If so DO NOT publish the container
#################WARNING################################
ADD google_api.py ./
ADD credentials.json ./
#do not read unless you have in your env the token pickle
ADD token.pickle ./
ADD style_name.json ./
#even though logs would not store anything, script will brake if not found
ADD logs.csv ./
RUN pip install -r requirements.txt
#necessary folders
RUN mkdir output
RUN mkdir output/output_log
RUN mkdir prod_folder
#logic is no longer in the bash file
CMD [ "python", "./neural_style_transfer.py" ]