This repository has been archived by the owner on Sep 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate development and production build images
- Loading branch information
1 parent
34b4e89
commit 537b73b
Showing
2 changed files
with
54 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
FROM pypy:3.10 | ||
|
||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
build-essential \ | ||
libssl-dev \ | ||
pkg-config \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN rustc --version && cargo --version | ||
|
||
|
||
# Set environment variables | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# Set work directory | ||
WORKDIR /usr/src/app | ||
|
||
RUN apt update && apt install gcc | ||
|
||
|
||
# RUN apt-get update && \ | ||
# apt-get install -y --no-install-recommends \ | ||
# build-essential \ | ||
# gcc \ | ||
# libpq-dev \ | ||
# libc-dev \ | ||
# netcat-traditional \ | ||
# && apt-get clean && \ | ||
# rm -rf /var/lib/apt/lists/* | ||
|
||
|
||
RUN pip install --upgrade pip | ||
COPY ./requirements.txt . | ||
RUN pip install -r requirements.txt | ||
|
||
RUN ln -s /usr/local/bin/pypy3 /usr/local/bin/python | ||
|
||
|
||
# Copy project | ||
COPY ./src . | ||
COPY ./start.sh . | ||
COPY ./celery.sh . | ||
|
||
|
||
# RUN pypy3 manage.py collectstatic --noinput |