-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (53 loc) · 2.03 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# # For more information, please refer to https://aka.ms/vscode-docker-python
# FROM python:3.8-slim-buster
# # Keeps Python from generating .pyc files in the container
# ENV PYTHONDONTWRITEBYTECODE 1
# # Turns off buffering for easier container logging
# ENV PYTHONUNBUFFERED 1
# RUN set -xe \
# && apt-get update \
# && apt-get install -y autoconf \
# build-essential \
# git \
# libffi-dev \
# libssl-dev \
# libtool \
# libxml2 \
# libxml2-dev \
# libxslt1.1 \
# libxslt1-dev \
# python3 \
# python3-dev \
# vim-tiny \
# && apt-get install -y libtiff5 \
# libtiff5-dev \
# libfreetype6-dev \
# libjpeg62-turbo \
# libjpeg62-turbo-dev \
# liblcms2-2 \
# liblcms2-dev \
# libwebp6 \
# libwebp-dev \
# zlib1g \
# zlib1g-dev
# RUN mkdir -p /app
# WORKDIR /app
# COPY . .
# # Install pip requirements
# COPY ./requirements.txt ./requirements.txt
# RUN python3 -m pip3 install -r requirements.txt
# # Switching to a non-root user, please refer to https://aka.ms/vscode-docker-python-user-rights
# RUN useradd appuser && chown -R appuser /app
# RUN chmod 777 -R /app
# USER appuser
# EXPOSE 6800
# # During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
# # CMD ["python", "app.py"]
# # CMD ["scrapyd", "--pidfile="]
# CMD ["/bin/bash"]
FROM python:3.7.0
RUN mkdir -p /app
WORKDIR /app
COPY . /app
COPY ./requirements.txt /app/requirements.txt
RUN pip3 install --upgrade pip && python -m spacy download es