-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (22 loc) · 826 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
# syntax=docker/dockerfile:1
# start by pulling the python image
FROM python:3.9-slim-buster
ADD . /chess-flask
WORKDIR /chess-flask
# RUN pip install board_to_fen flask flask-wtf flask-uploaded
# copy the requirements file into the image
COPY ./requirements.txt /app/requirements.txt
# switch working directory
# WORKDIR /app
# RUN apt-get update && apt-get install -y python3-opencv
# RUN pip install opencv-python
# RUN apt-get update && apt-get install -y --no-install-recommends \
# libgl1 \
# libglib2.0-0
# install the dependencies and packages in the requirements file
RUN pip install --no-cache-dir -r requirements.txt
# copy every content from the local file to the image
COPY . /app
# configure the container to run in an executed manner
# ENTRYPOINT [ "python" ]
CMD ["python", "app.py" ]