mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
* Add Env INSTANCE_CHANGELOG_URL in apiserver Dockerfile * removed INSTANCE_CHANGELOG_URL from docker-compose
48 lines
956 B
Docker
48 lines
956 B
Docker
FROM python:3.12.5-alpine AS backend
|
|
|
|
# set environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
ENV INSTANCE_CHANGELOG_URL https://api.plane.so/api/public/anchor/c210fcf7b0ff439490b1cd606b4bb92b/pages/
|
|
|
|
RUN apk --no-cache add \
|
|
"bash~=5.2" \
|
|
"libpq" \
|
|
"libxslt" \
|
|
"nodejs-current" \
|
|
"xmlsec" \
|
|
"libffi-dev" \
|
|
"bash~=5.2" \
|
|
"g++" \
|
|
"gcc" \
|
|
"cargo" \
|
|
"git" \
|
|
"make" \
|
|
"postgresql-dev" \
|
|
"libc-dev" \
|
|
"linux-headers" \
|
|
"xmlsec-dev"
|
|
|
|
WORKDIR /code
|
|
|
|
COPY requirements.txt ./requirements.txt
|
|
ADD requirements ./requirements
|
|
|
|
# Install the local development settings
|
|
RUN pip install -r requirements/local.txt --compile --no-cache-dir
|
|
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p /code/plane/logs
|
|
RUN chmod -R +x /code/bin
|
|
RUN chmod -R 777 /code
|
|
|
|
|
|
# Expose container port and run entry point script
|
|
EXPOSE 8000
|
|
|
|
CMD [ "./bin/docker-entrypoint-api-local.sh" ]
|
|
|