mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Switch to Alpine-based docker images
This commit is contained in:
parent
563345eddd
commit
02cc464098
14
Dockerfile
14
Dockerfile
@ -1,16 +1,20 @@
|
|||||||
FROM python:3.10.11
|
FROM python:3.10.11-alpine
|
||||||
|
|
||||||
RUN groupadd -g 5123 cdb && \
|
RUN addgroup --gid 5123 cdb && \
|
||||||
useradd -r -u 5123 -g cdb cdb
|
adduser --uid 5123 -S cdb -G cdb
|
||||||
|
|
||||||
WORKDIR /home/cdb
|
WORKDIR /home/cdb
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
apk add --no-cache postgresql-libs git bash && \
|
||||||
|
apk add --no-cache --virtual .build-deps gcc musl-dev postgresql-dev g++
|
||||||
|
|
||||||
RUN mkdir /var/cdb
|
RUN mkdir /var/cdb
|
||||||
RUN chown -R cdb:cdb /var/cdb
|
RUN chown -R cdb:cdb /var/cdb
|
||||||
|
|
||||||
COPY requirements.lock.txt requirements.lock.txt
|
COPY requirements.lock.txt requirements.lock.txt
|
||||||
RUN pip install -r requirements.lock.txt
|
RUN pip install -r requirements.lock.txt && \
|
||||||
RUN pip install gunicorn
|
pip install gunicorn
|
||||||
|
|
||||||
COPY utils utils
|
COPY utils utils
|
||||||
COPY config.cfg config.cfg
|
COPY config.cfg config.cfg
|
||||||
|
Loading…
Reference in New Issue
Block a user