-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
50 lines (38 loc) · 1.71 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
######################################################################
# Stage name "development" is required for development with DargStack.
# TODO: try if slim or alpine versions work.
FROM python:3.11.4-buster@sha256:3a19b4d6ce4402d11bb19aa11416e4a262a60a57707a5cda5787a81285df2666 AS development
ENV PYTHONUNBUFFERED 1
# old pygame dependency list
#
# git python3-dev python3-setuptools python3-numpy python3-opengl \
# libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev \
# libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev \
# libtiff5-dev libx11-6 libx11-dev fluid-soundfont-gm timgm6mb-soundfont \
# xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic fontconfig fonts-freefont-ttf libfreetype6-dev \
#libxml2-dev libxslt1-dev
# ignored pygame dependencies
#
# libjpeg-dev libpng-dev
# dependecies for this app, pygame, sqlalchemy.
RUN apt-get update && \
apt-get install --no-install-recommends -y libldap2-dev libsasl2-dev locales xinput \
\
libsdl1.2-dev libfreetype6-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev libportmidi-dev && \
\
rm -rf /var/lib/apt/lists/*
RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8
RUN mkdir /srv/app/
WORKDIR /srv/app/
RUN pip install poetry==1.8.2
COPY ./docker/asound.conf /etc/asound.conf
COPY ./docker/pip_extra-index-piwheels.conf /etc/pip.conf
COPY ./poetry.lock ./pyproject.toml ./
RUN --mount=type=cache,target=/root/.cache/pypoetry/cache \
--mount=type=cache,target=/root/.cache/pypoetry/artifacts \
poetry install
COPY ./drinks_touch/ ./drinks_touch/
ENV ENV=PI
ENTRYPOINT ["poetry", "run"]
#CMD ["python", "game.py"]
CMD ["python", "./drinks_touch/game.py"]