-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 957 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 957 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
# syntax=docker/dockerfile:1
#Setup OS
# FROM ubuntu:latest
FROM tiangolo/uwsgi-nginx-flask:flask
#Server Logic
FROM python:3.8-slim-buster
#install stockfish
RUN apt update && apt install -y stockfish
ENV PATH "$PATH:/usr/games"
#This instructs Docker to use this path as the default location for all subsequent commands.
WORKDIR /ChessServer
# The COPY command takes two parameters. The first parameter tells Docker what file(s) you would like to copy into the image. The second parameter tells Docker where you want that file(s) to be copied to. We’ll copy the requirements.txt file into our working directory /app.
#COPY requirements.txt requirements.txt
#This COPY command takes all the files located in the current directory and copies them into the image.
COPY . .
#This RUN command installs the dependencies listed in the requirements.txt file.
RUN pip3 install -r requirements.txt
CMD [ "python3", "-m" , "server", "run", "--host=0.0.0.0"]