mirror of
https://github.com/hibobmaster/matrix_chatgpt_bot.git
synced 2024-10-01 05:35:36 -04:00
update .dockerignore and add libmagic dependency to alpine dockerbuild
This commit is contained in:
parent
5804abf2e7
commit
f5f8ef8429
@ -3,8 +3,8 @@ images
|
|||||||
*.md
|
*.md
|
||||||
Dockerfile
|
Dockerfile
|
||||||
.dockerignore
|
.dockerignore
|
||||||
.config.json
|
config.json
|
||||||
.config.json.sample
|
config.json.sample
|
||||||
bot
|
bot
|
||||||
bot.log
|
bot.log
|
||||||
venv
|
venv
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
FROM python:3.11-alpine as pybuilder
|
FROM python:3.11-alpine as pybuilder
|
||||||
RUN sed -i 's|v3\.\d*|edge|' /etc/apk/repositories
|
RUN sed -i 's|v3\.\d*|edge|' /etc/apk/repositories
|
||||||
RUN apk update && apk add --no-cache olm-dev gcc musl-dev tzdata
|
RUN apk update && apk add olm-dev gcc musl-dev tzdata libmagic
|
||||||
COPY requirements.txt /requirements.txt
|
COPY requirements.txt /requirements.txt
|
||||||
RUN pip3 install --user -r /requirements.txt && rm /requirements.txt
|
RUN pip3 install --user -r /requirements.txt && rm /requirements.txt
|
||||||
|
|
||||||
|
|
||||||
FROM python:3.11-alpine as runner
|
FROM python:3.11-alpine as runner
|
||||||
RUN apk update && apk add --no-cache olm-dev
|
RUN apk update && apk add olm-dev libmagic
|
||||||
COPY --from=pybuilder /root/.local /usr/local
|
COPY --from=pybuilder /root/.local /usr/local
|
||||||
COPY --from=pybuilder /usr/share/zoneinfo /usr/share/zoneinfo
|
COPY --from=pybuilder /usr/share/zoneinfo /usr/share/zoneinfo
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
Loading…
Reference in New Issue
Block a user