mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
server/docker: use Alpine-based image for space savings
This commit is contained in:
@ -10,7 +10,14 @@ ARG BASE_IMAGE
|
||||
FROM ${BASE_IMAGE}
|
||||
WORKDIR /opt/app
|
||||
USER root
|
||||
RUN pip3 install --no-cache-dir pytest-cov freezegun
|
||||
RUN apk --no-cache add \
|
||||
py3-pytest \
|
||||
py3-pytest-cov \
|
||||
&& \
|
||||
pip3 install \
|
||||
--no-cache-dir \
|
||||
--disable-pip-version-check \
|
||||
freezegun
|
||||
USER app
|
||||
ENV POSTGRES_HOST=x \
|
||||
POSTGRES_USER=x \
|
||||
@ -20,4 +27,6 @@ CMD ["pytest", "szurubooru/", \
|
||||
"--cov-report=term-missing", "--cov=szurubooru", "--tb=short"]
|
||||
EOF
|
||||
|
||||
docker run --rm -t ${IMAGE_NAME}-test
|
||||
docker run --rm -t ${IMAGE_NAME}-test
|
||||
|
||||
exit $?
|
||||
|
Reference in New Issue
Block a user