forked from alexis-jacq/Learning_from_a_Learner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (24 loc) · 1009 Bytes
/
Dockerfile
File metadata and controls
33 lines (24 loc) · 1009 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
# Use an official Python runtime as a parent image
FROM python:3.9
# Set the working directory in the container
WORKDIR /usr/src/app
# Install GCC - old
# RUN apt-get update && apt-get install -y gcc-9 g++-9
# Install GCC
RUN apt-get update && apt-get install -y gcc g++
# Update alternatives to make gcc-9 and g++-9 the default compilers
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
# Install any needed packages specified in requirements.txt
# Uncomment the next line if you have a requirements.txt file
# COPY requirements.txt ./
# RUN pip install --no-cache-dir -r requirements.txt
# Copy the current directory contents into the container at /usr/src/app
COPY . .
# Make port 80 available to the world outside this container
EXPOSE 80
# Define environment variable
ENV NAME World
# Run app.py when the container launches
# Replace "app.py" with the script you want to run
CMD ["python", "learner.py"]