Files
plane/apps/api/Dockerfile.api
T
Manish GuptaandGitHub 84ed10b6a0 [INFRA-304] chore: update Dockerfiles to include LICENSE.txt in application images (#5671)
* chore: update Dockerfiles to include LICENSE.txt and adjust Docker Compose paths

- Added LICENSE.txt copying to various Dockerfiles for compliance.
- Updated Docker Compose file to correct paths for Dockerfiles in the apps directory.
- Renamed copy_env_file function to copy_file in setup.sh for clarity and consistency.

* chore: refine Docker Compose and setup scripts for improved service builds

- Updated Docker Compose file to specify correct build contexts and Dockerfile paths for the monitor and email services.
- Removed license file copying from setup.sh to streamline the build process.
- Cleaned up .gitignore by removing the LICENSE.txt entry for apps.
2026-02-02 15:10:17 +05:30

64 lines
1.4 KiB
Docker

FROM python:3.12.10-alpine
# set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV INSTANCE_CHANGELOG_URL=https://sites.plane.so/pages/f366114e9aba4cbfbe4265b8f2b74f65/
# Update system packages for security
RUN apk update && apk upgrade
WORKDIR /code
RUN apk add --no-cache --upgrade \
"libpq" \
"libxslt" \
"xmlsec" \
"ca-certificates" \
"openssl" \
"openldap-dev"
COPY requirements.txt ./
COPY requirements ./requirements
RUN apk add --no-cache libffi-dev
RUN apk add --no-cache --virtual .build-deps \
"bash~=5.2" \
"g++" \
"gcc" \
"cargo" \
"git" \
"make" \
"postgresql-dev" \
"libc-dev" \
"linux-headers" \
"xmlsec-dev"\
&& \
pip install -r requirements.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/
COPY LICENSE.txt .
RUN mkdir -p /usr/share/licenses/plane/
COPY LICENSE.txt /usr/share/licenses/plane/LICENSE.txt
RUN mkdir -p /code/plane/logs
RUN chmod +x ./bin/*
RUN chmod -R 777 /code
# Expose container port and run entry point script
EXPOSE 8000
CMD ["./bin/docker-entrypoint-api.sh"]