Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix platform deployment (2nd try) #169

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,8 @@ WORKDIR /app/

# Install dependencies
RUN apt-get update \
&& apt-get install --no-install-recommends -y python3.11-dev python3-distutils libpq-dev gcc python3.11-venv \
&& python3.11 -m venv /opt/venv

# Activate virtual environment
ENV PATH="/opt/venv/bin:$PATH"

# Install pipenv using pip
RUN pip install --upgrade pip \
&& pip install pipenv

# Clean up
RUN apt-get clean \
&& apt-get install --no-install-recommends -y python3.11-dev pipenv python3-distutils libpq-dev gcc \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Copy config files
Expand All @@ -33,7 +23,7 @@ COPY docker/supervisord.conf /etc/supervisor/
COPY Pipfile* /app/

# Install project dependencies
RUN pipenv install --system
RUN pipenv install --deploy --system

# Copy project files
COPY . /app/
Expand Down
Loading