This repository has been archived by the owner on May 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
51 lines (45 loc) · 1.6 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
# 1 python
# 2 python3
# 3 yum search python
# 4 yum install gcc openssl-devel bzip2-devel
# 5 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
# 6 yum install wget
# 7 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
# 8 tar xzf Python-3.7.0.tgz
# 9 cd Python-3.7.0
# 10 ./configure --enable-optimizations
# 11 make altinstall
# 12 yum groupinstall "Development Tools"
# 13 make altinstall
# 14 ./configure --enable-optimizations
# 15 gcc
# 16 g++
# 17 make altinstall -j
# 18 sudo yum install libffi-devl
# 19 yum install libffi-devel
# 20 sudo yum install libffi-devl
# 21 make altinstall -j
# 22 history
FROM centos:7.6.1810
RUN yum install gcc openssl-devel bzip2-devel wget libffi-devel -y &&\
yum groupinstall "Development Tools" -y &&\
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz &&\
tar xzf Python-3.7.0.tgz &&\
cd Python-3.7.0 &&\
./configure --enable-optimizations --enable-shared &&\
make altinstall -j
ENV LD_LIBRARY_PATH=/usr/local/lib
RUN ldconfig
COPY requirements.txt /game/
RUN cd /game && python3.7 -m venv venv && source venv/bin/activate &&\
pip install -r requirements.txt pyinstaller
COPY pyquil_requests.py quantum-freeze.py README.md requirements.txt sprites.py /game/
COPY resources /game/resources
COPY qf-docker.spec /game/quantum-freeze.spec
RUN cd /game && source venv/bin/activate &&\
pyinstaller quantum-freeze.spec
# fnamCOPYes =
# for fname in pyquil_requests.py quantum-freeze.py quantum-freeze.spec README.md requirements.txt resources sprites.py
# do
# docker cp $fname distracted_blackwell:game/
# done