Skip to content

Commit 8e83127

Browse files
authored
Merge pull request #193 from ngaro/docker
Dockerfile.alpine as improved Dockerfile
2 parents 362b419 + a337aeb commit 8e83127

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docker/Dockerfile.alpine

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM python:3.12-alpine3.20
2+
ARG NEEDED_PACKAGES_FOR_BUILD="olm-dev jpeg-dev cmake make gcc g++"
3+
4+
RUN mkdir -p /app/matrix_commander/
5+
6+
WORKDIR /app/
7+
COPY requirements.txt .
8+
RUN apk add --no-cache ${NEEDED_PACKAGES_FOR_BUILD} && \
9+
pip3 install --no-cache -r requirements.txt && \
10+
apk del --purge ${NEEDED_PACKAGES_FOR_BUILD}
11+
RUN apk add --no-cache libjpeg olm libmagic
12+
13+
WORKDIR /app/matrix_commander/
14+
COPY matrix_commander/matrix_commander.py .
15+
COPY matrix_commander/matrix-commander .
16+
COPY matrix_commander/__init__.py .
17+
18+
VOLUME /data
19+
20+
ENTRYPOINT ["python3", "/app/matrix_commander/matrix-commander" ,"-s", "/data/store", "-c", "/data/credentials.json"]

0 commit comments

Comments
 (0)