2025-07-17 13:34:06 +05:30
|
|
|
FROM python:3.12.10-alpine
|
2023-10-13 12:16:08 +05:30
|
|
|
|
|
|
|
|
# set environment variables
|
2025-07-17 13:34:06 +05:30
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
|
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
2023-10-13 12:16:08 +05:30
|
|
|
|
2025-07-17 13:34:06 +05:30
|
|
|
ENV INSTANCE_CHANGELOG_URL=https://sites.plane.so/pages/f366114e9aba4cbfbe4265b8f2b74f65
|
2023-10-13 12:16:08 +05:30
|
|
|
|
2025-07-17 13:34:06 +05:30
|
|
|
|
|
|
|
|
# Update system packages for security
|
|
|
|
|
RUN apk update && apk upgrade
|
|
|
|
|
|
|
|
|
|
WORKDIR /code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RUN apk add --no-cache --upgrade \
|
2024-08-19 16:27:36 +05:30
|
|
|
"libpq" \
|
|
|
|
|
"libxslt" \
|
|
|
|
|
"xmlsec" \
|
2025-07-17 13:34:06 +05:30
|
|
|
"ca-certificates" \
|
|
|
|
|
"openssl"
|
|
|
|
|
|
|
|
|
|
COPY requirements.txt ./
|
|
|
|
|
COPY requirements ./requirements
|
|
|
|
|
RUN apk add --no-cache libffi-dev
|
|
|
|
|
RUN apk add --no-cache --virtual .build-deps \
|
2023-10-13 12:16:08 +05:30
|
|
|
"bash~=5.2" \
|
2024-08-19 16:27:36 +05:30
|
|
|
"g++" \
|
|
|
|
|
"gcc" \
|
|
|
|
|
"cargo" \
|
|
|
|
|
"git" \
|
|
|
|
|
"make" \
|
|
|
|
|
"postgresql-dev" \
|
2023-10-13 12:16:08 +05:30
|
|
|
"libc-dev" \
|
2024-05-11 14:48:15 +05:30
|
|
|
"linux-headers" \
|
2025-07-17 13:34:06 +05:30
|
|
|
"xmlsec-dev"\
|
|
|
|
|
&& \
|
|
|
|
|
pip install -r requirements/local.txt --compile --no-cache-dir \
|
|
|
|
|
&& \
|
|
|
|
|
apk del .build-deps \
|
|
|
|
|
&& \
|
|
|
|
|
rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
|
|
# Add in Django deps and generate Django's static files
|
|
|
|
|
COPY manage.py manage.py
|
|
|
|
|
COPY plane plane/
|
|
|
|
|
COPY templates templates/
|
|
|
|
|
COPY package.json package.json
|
|
|
|
|
|
|
|
|
|
RUN apk --no-cache add "bash~=5.2"
|
|
|
|
|
COPY ./bin ./bin/
|
2023-10-13 12:16:08 +05:30
|
|
|
|
2024-03-20 19:28:19 +05:30
|
|
|
RUN mkdir -p /code/plane/logs
|
2024-01-23 15:07:45 +05:30
|
|
|
RUN chmod -R +x /code/bin
|
2023-10-13 12:16:08 +05:30
|
|
|
RUN chmod -R 777 /code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Expose container port and run entry point script
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
|
2024-05-22 13:00:45 +05:30
|
|
|
CMD [ "./bin/docker-entrypoint-api-local.sh" ]
|
2023-10-13 12:16:08 +05:30
|
|
|
|