2024-06-19 20:00:53 +08:00
|
|
|
FROM python:3.10-slim
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2024-12-05 12:11:28 +08:00
|
|
|
apt-get install -y tzdata build-essential unzip
|
2024-06-19 20:00:53 +08:00
|
|
|
|
2024-12-05 12:11:28 +08:00
|
|
|
COPY core/requirements.txt /tmp/requirements.txt
|
|
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
2024-06-19 20:00:53 +08:00
|
|
|
|
2024-12-05 12:11:28 +08:00
|
|
|
WORKDIR /app
|
2024-06-19 20:00:53 +08:00
|
|
|
|
|
|
|
# download and unzip PocketBase
|
2024-12-05 12:11:28 +08:00
|
|
|
ADD https://github.com/pocketbase/pocketbase/releases/download/v0.23.4/pocketbase_0.23.4_linux_amd64.zip /tmp/pb.zip
|
2024-06-20 15:01:27 +08:00
|
|
|
# for arm device
|
2024-12-05 12:11:28 +08:00
|
|
|
# ADD https://github.com/pocketbase/pocketbase/releases/download/v0.23.4/pocketbase_0.23.4_linux_arm64.zip /tmp/pb.zip
|
2024-06-20 15:01:27 +08:00
|
|
|
RUN unzip /tmp/pb.zip -d /app/pb/
|
2024-12-05 12:11:28 +08:00
|
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
2024-06-19 20:00:53 +08:00
|
|
|
|
|
|
|
EXPOSE 8090
|
|
|
|
EXPOSE 8077
|
|
|
|
|
|
|
|
CMD tail -f /dev/null
|