-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (36 loc) · 1.11 KB
/
Dockerfile
File metadata and controls
46 lines (36 loc) · 1.11 KB
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
# To create the image:
# $ docker build -t steverobertson/zxplay-api-z88dk .
# To run the container:
# $ docker run -n z88dk -v ${PWD}:/src/ -it steverobertson/zxplay-api-z88dk
# To connect to the running container:
# $ docker exec -it z88dk /bin/bash
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
ENV Z88DK_PATH="/opt/z88dk" \
SDCC_PATH="/tmp/sdcc"
ENV PATH="${Z88DK_PATH}/bin:${PATH}" \
ZCCCFG="${Z88DK_PATH}/lib/config/"
RUN apt update && apt install -y \
build-essential \
git \
subversion \
curl \
libxml2-dev \
bison \
flex \
libboost-all-dev \
texinfo \
zlib1g-dev
RUN git clone --depth 1 --branch v2.1 --recursive https://github.com/z88dk/z88dk.git ${Z88DK_PATH} \
&& cd ${Z88DK_PATH} \
&& export BUILD_SDCC=1 \
&& export BUILD_SDCC_HTTP=1 \
&& ./build.sh \
&& rm -fR ${SDCC_PATH}
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN apt-get update \
&& apt-get install gcc -y \
&& apt-get clean
RUN pip install -r /app/requirements.txt \
&& rm -rf /root/.cache/pip
COPY . /app/