-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 1008 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
32
FROM python:3.6-stretch
#FROM debian:stretch
#Not supported, due to bug in colors. TODO: update
ENV DEBIAN_FRONTEND=noninteractive
COPY repos/nonfree.repo /etc/apt/sources.list.d/nonfree.list
RUN useradd zxspectrum -d /home/zxspectrum
RUN apt-get update
RUN apt-get install -yq fuse-emulator-common xvfb fuse-emulator-utils spectrum-roms fuse-emulator-sdl ffmpeg zmakebas z80asm fuse
COPY --chown=zxspectrum . /home/zxspectrum
WORKDIR /home/zxspectrum
RUN gcc -Wall -lm assets/bas2tap.c -o assets/bas2tap
RUN gcc -Wall -lm assets/bin2tap.c -o assets/bin2tap
RUN cp assets/bas2tap /usr/bin
RUN cp assets/bin2tap /usr/bin
USER zxspectrum
ENV ZBXPATH=/home/zxspectrum/zxbasic
ENV DISPLAY=:99
ENV SDL_AUDIODRIVER=dummy
ENV PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/usr/local/sbin
RUN wget -q --no-check-certificate http://www.boriel.com/files/zxb/zxbasic-1.16.3-linux64.tar.gz && tar -zxvf zxbasic-1.16.3-linux64.tar.gz
RUN mkdir -p bot/working
RUN pip3 install -r requirements.txt
CMD ./start.sh