mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
878707f444
* dev: remove default user * dev: initiate licensing * dev: remove migration file 0046 * feat: self hosted licensing initialize * dev: instance licenses * dev: change license response structure * dev: add default properties and issue mention migration * dev: reset migrations * dev: instance configuration * dev: instance configuration migration * dev: update instance configuration model to take null and empty values * dev: instance configuration variables * dev: set default values * dev: update instance configuration load * dev: email configuration settings moved to database * dev: instance configuration on instance bootup * dev: auto instance registration script * dev: instance admin * dev: enable instance configuration and instance admin roles * dev: instance owner fix * dev: instance configuration values * dev: fix instance permissions and serializer * dev: fix email senders * dev: remove deprecated variables * dev: fix current site domain registration * dev: update cors setup and local settings * dev: migrate instance registration and configuration to manage commands * dev: check email validity * dev: update script to use manage command * dev: default bucket creation script * dev: instance admin routes and initial set of screens * dev: admin api to check if the current user is admin * dev: instance admin unique constraints * dev: check magic link login * dev: fix email sending for ssl * dev: create instance activation route if the instance is not activated during startup * dev: removed DJANGO_SETTINGS_MODULE from environment files and deleted auto bucket create script * dev: environment configuration for backend * dev: fix access token variable error * feat: Instance Admin Panel: General Settings (#2792) --------- Co-authored-by: pablohashescobar <nikhilschacko@gmail.com> Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
62 lines
1.2 KiB
Docker
62 lines
1.2 KiB
Docker
FROM python:3.11.1-alpine3.17 AS backend
|
|
|
|
# set environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
|
|
|
WORKDIR /code
|
|
|
|
RUN apk --no-cache add \
|
|
"libpq~=15" \
|
|
"libxslt~=1.1" \
|
|
"nodejs-current~=19" \
|
|
"xmlsec~=1.2"
|
|
|
|
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++~=12.2" \
|
|
"gcc~=12.2" \
|
|
"cargo~=1.64" \
|
|
"git~=2" \
|
|
"make~=4.3" \
|
|
"postgresql13-dev~=13" \
|
|
"libc-dev" \
|
|
"linux-headers" \
|
|
&& \
|
|
pip install -r requirements.txt --compile --no-cache-dir \
|
|
&& \
|
|
apk del .build-deps
|
|
|
|
|
|
RUN addgroup -S plane && \
|
|
adduser -S captain -G plane
|
|
|
|
RUN chown captain.plane /code
|
|
|
|
USER captain
|
|
|
|
# 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
|
|
COPY gunicorn.config.py ./
|
|
USER root
|
|
RUN apk --no-cache add "bash~=5.2"
|
|
COPY ./bin ./bin/
|
|
|
|
RUN chmod +x ./bin/takeoff ./bin/worker ./bin/beat
|
|
RUN chmod -R 777 /code
|
|
|
|
USER captain
|
|
|
|
# Expose container port and run entry point script
|
|
EXPOSE 8000
|
|
|
|
# CMD [ "./bin/takeoff" ]
|
|
|