mirror of
https://github.com/cupcakearmy/docker-radicale.git
synced 2024-12-21 23:46:24 +00:00
use alpine
This commit is contained in:
parent
0e90084cd7
commit
859dd97cdf
16
Dockerfile
16
Dockerfile
@ -1,9 +1,17 @@
|
|||||||
FROM python:3.9
|
FROM python:3.9-alpine as builder
|
||||||
|
|
||||||
RUN apt update
|
WORKDIR /app
|
||||||
RUN apt install -y apache2-utils
|
|
||||||
|
|
||||||
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
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
if [ ! -f "$USER_FILE" ]; then
|
if [ ! -f "$USER_FILE" ]; then
|
||||||
echo "No auth file found. Generating";
|
echo "No auth file found. Generating";
|
||||||
|
Loading…
Reference in New Issue
Block a user