use alpine

This commit is contained in:
cupcakearmy 2021-03-17 00:49:27 +01:00
parent 0e90084cd7
commit 859dd97cdf
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
2 changed files with 13 additions and 5 deletions

View File

@ -1,9 +1,17 @@
FROM python:3.9
FROM python:3.9-alpine as builder
RUN apt update
RUN apt install -y apache2-utils
WORKDIR /app
RUN python3 -m pip install --upgrade radicale[bcrypt]
RUN apk add --no-cache alpine-sdk libffi-dev
RUN pip install --user radicale[bcrypt]
FROM python:3.9-alpine
RUN apk add --no-cache apache2-utils
COPY --from=builder /root/.local /root/.local
ENV PATH=/root/.local:$PATH
WORKDIR /app

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
if [ ! -f "$USER_FILE" ]; then
echo "No auth file found. Generating";