mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
chore: updated node version to 22 and python version to 3.12.10 (#7343)
* chore: updated node version to 22 and python version to 3.12.10 * chore: remove unneccessary comments * chore: remove nodejs-current dependency
This commit is contained in:
committed by
GitHub
parent
fdbe4c2ca6
commit
509db32267
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-alpine AS base
|
FROM node:22-alpine AS base
|
||||||
|
|
||||||
# *****************************************************************************
|
# *****************************************************************************
|
||||||
# STAGE 1: Build the project
|
# STAGE 1: Build the project
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-alpine
|
FROM node:22-alpine
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
@@ -1,18 +1,22 @@
|
|||||||
FROM python:3.12.5-alpine AS backend
|
FROM python:3.12.10-alpine
|
||||||
|
|
||||||
# set environment variables
|
# set environment variables
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED=1
|
||||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
|
||||||
ENV INSTANCE_CHANGELOG_URL https://sites.plane.so/pages/691ef037bcfe416a902e48cb55f59891/
|
ENV INSTANCE_CHANGELOG_URL=https://sites.plane.so/pages/691ef037bcfe416a902e48cb55f59891/
|
||||||
|
|
||||||
|
# Update system packages for security
|
||||||
|
RUN apk update && apk upgrade
|
||||||
|
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache --upgrade \
|
||||||
"libpq" \
|
"libpq" \
|
||||||
"libxslt" \
|
"libxslt" \
|
||||||
"nodejs-current" \
|
"xmlsec" \
|
||||||
"xmlsec"
|
"ca-certificates" \
|
||||||
|
"openssl"
|
||||||
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
COPY requirements ./requirements
|
COPY requirements ./requirements
|
||||||
@@ -30,7 +34,9 @@ RUN apk add --no-cache --virtual .build-deps \
|
|||||||
&& \
|
&& \
|
||||||
pip install -r requirements.txt --compile --no-cache-dir \
|
pip install -r requirements.txt --compile --no-cache-dir \
|
||||||
&& \
|
&& \
|
||||||
apk del .build-deps
|
apk del .build-deps \
|
||||||
|
&& \
|
||||||
|
rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
|
|
||||||
# Add in Django deps and generate Django's static files
|
# Add in Django deps and generate Django's static files
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
FROM node:20-alpine
|
FROM node:22-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
# Set working directory
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
@@ -8,7 +8,7 @@ RUN yarn global add turbo
|
|||||||
RUN yarn install
|
RUN yarn install
|
||||||
EXPOSE 3003
|
EXPOSE 3003
|
||||||
|
|
||||||
ENV TURBO_TELEMETRY_DISABLED 1
|
ENV TURBO_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
VOLUME [ "/app/node_modules", "/app/live/node_modules"]
|
VOLUME [ "/app/node_modules", "/app/live/node_modules"]
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
FROM node:20-alpine AS base
|
FROM node:22-alpine AS base
|
||||||
# The web Dockerfile is copy-pasted into our main docs at /docs/handbook/deploying-with-docker.
|
|
||||||
# Make sure you update this Dockerfile, the Dockerfile in the web workspace and copy that over to Dockerfile in the docs.
|
|
||||||
|
|
||||||
# *****************************************************************************
|
# *****************************************************************************
|
||||||
# STAGE 1: Prune the project
|
# STAGE 1: Prune the project
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-alpine
|
FROM node:22-alpine
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-alpine AS base
|
FROM node:22-alpine AS base
|
||||||
|
|
||||||
# *****************************************************************************
|
# *****************************************************************************
|
||||||
# STAGE 1: Build the project
|
# STAGE 1: Build the project
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
FROM node:20-alpine
|
FROM node:22-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache libc6-compat
|
RUN apk add --no-cache libc6-compat
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn global add turbo
|
RUN yarn global add turbo
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
VOLUME [ "/app/node_modules", "/app/web/node_modules" ]
|
VOLUME [ "/app/node_modules", "/app/web/node_modules" ]
|
||||||
CMD ["yarn", "dev", "--filter=web"]
|
CMD ["yarn", "dev", "--filter=web"]
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-alpine AS base
|
FROM node:22-alpine AS base
|
||||||
|
|
||||||
# *****************************************************************************
|
# *****************************************************************************
|
||||||
# STAGE 1: Build the project
|
# STAGE 1: Build the project
|
||||||
|
|||||||
Reference in New Issue
Block a user