Skip to content

Commit

Permalink
update_03
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg committed Nov 29, 2024
1 parent b9f87cc commit 8878075
Show file tree
Hide file tree
Showing 3,072 changed files with 3 additions and 1,110,738 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
40 changes: 3 additions & 37 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ COPY requirements.txt ./
COPY package*.json ./

# Install global Python and Node.js dependencies
RUN pip install -r requirements.txt
RUN npm install --unsafe-perm
RUN pip install --no-cache-dir -r requirements.txt && \
npm install --unsafe-perm

# Check the installed version of Pillow after installing requirements
RUN python -m pip show Pillow
Expand All @@ -24,45 +24,11 @@ COPY ./static/js ./static/js
RUN npm run setup
RUN npm run build-prod

# Install system dependencies for building Python 3.12
# RUN apt-get update && apt-get install -y \
# software-properties-common \
# wget \
# build-essential \
# zlib1g-dev \
# libssl-dev \
# libbz2-dev \
# libreadline-dev \
# libsqlite3-dev \
# libffi-dev && \
# apt-get clean

# Download and build Python 3.12
# RUN wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz && \
# tar xvf Python-3.12.0.tgz && \
# cd Python-3.12.0 && \
# ./configure --enable-optimizations && \
# make -j$(nproc) && \
# make altinstall && \
# cd .. && rm -rf Python-3.12.0 Python-3.12.0.tgz

# Verify Python 3.12 installation
# RUN python3.12 --version


# Create a virtual environment with Python 3.12
# RUN python3.12 -m venv /pillow-env && \
# /pillow-env/bin/pip install --upgrade pip && \
# /pillow-env/bin/pip install Pillow==11.0.0

# RUN /pillow-env/bin/pip list

# RUN ls -l /pillow-env/lib/python3.12/site-packages

# Copy application source code
COPY . ./

COPY staticfiles/ /app/staticfiles/
RUN python manage.py collectstatic --noinput

# Run Django migrations and start the server
CMD ["bash", "-c", "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"]
Expand Down
Loading

0 comments on commit 8878075

Please sign in to comment.