-
-
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.
feat: improve image sizes; add twilio functionality
- Loading branch information
1 parent
bf023d5
commit 671ec95
Showing
11 changed files
with
38 additions
and
44 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
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
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FROM python:3.11 | ||
FROM python:3.11-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
COPY . . | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir -r requirements/prod.txt | ||
RUN pip install --upgrade pip && \ | ||
pip install --no-cache-dir -r requirements/prod.txt && \ | ||
adduser --disabled-password --gecos '' thekid && \ | ||
chown -R thekid:thekid /app | ||
|
||
ENV FLASK_APP=bereal.server | ||
|
||
RUN adduser --disabled-password --gecos '' thekid | ||
RUN chown -R thekid:thekid /app && chmod -R 777 /app | ||
USER thekid | ||
|
||
CMD ["celery", "-A", "bereal.celery worker", "--loglevel=INFO", "--logfile=celery.log", "-E", "-c", "1"] | ||
ENV FLASK_APP=bereal.server | ||
|
||
CMD ["celery", "-A", "bereal.celery", "worker", "--loglevel=INFO", "--logfile=celery.log", "-E", "-c", "1"] |
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 |
---|---|---|
@@ -1,13 +1,12 @@ | ||
FROM python:3.11 | ||
FROM python:3.11-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
COPY . . | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir -r requirements/prod.txt | ||
RUN pip install --upgrade pip && \ | ||
pip install --no-cache-dir -r requirements/prod.txt | ||
|
||
EXPOSE 80 | ||
EXPOSE 443 | ||
EXPOSE 80 443 | ||
|
||
CMD ["python", "-m", "bereal.cli"] |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FROM python:3.11 | ||
FROM python:3.11-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
COPY . . | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir -r requirements/prod.txt | ||
RUN pip install --upgrade pip && \ | ||
pip install --no-cache-dir -r requirements/prod.txt && \ | ||
adduser --disabled-password --gecos '' thekid && \ | ||
chown -R thekid:thekid /app | ||
|
||
ENV FLASK_APP=bereal.server | ||
|
||
RUN adduser --disabled-password --gecos '' thekid | ||
RUN chown -R thekid:thekid /app && chmod -R 777 /app | ||
USER thekid | ||
|
||
ENV FLASK_APP=bereal.server | ||
|
||
CMD ["celery", "-A", "bereal.celery", "flower", "--address=0.0.0.0", "--inspect", "--enable-events", "--loglevel=DEBUG", --"logfile=flower.log"] |
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 |
---|---|---|
@@ -1,22 +1,19 @@ | ||
FROM python:3.11 | ||
FROM python:3.11-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY . /app | ||
COPY . . | ||
COPY --chmod=+x ./scripts/server-entrypoint.sh . | ||
|
||
RUN apt-get update && apt-get install -y netcat-openbsd | ||
RUN pip install --upgrade pip && \ | ||
pip install --no-cache-dir -r requirements/prod.txt && \ | ||
adduser --disabled-password --gecos '' thekid && \ | ||
chown -R thekid:thekid /app | ||
|
||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir -r requirements/prod.txt | ||
|
||
COPY --chmod=+x ./scripts/server-entrypoint.sh /app/ | ||
USER thekid | ||
|
||
ENV FLASK_APP=bereal.server | ||
|
||
RUN adduser --disabled-password --gecos '' thekid | ||
RUN chown -R thekid:thekid /app && chmod -R 777 /app | ||
USER thekid | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT ["/app/server-entrypoint.sh"] |
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,2 @@ | ||
User-agent: * | ||
Disallow: / |
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ pydub==0.25.1 | |
python-dotenv==1.0.0 | ||
Requests==2.31.0 | ||
tqdm==4.66.1 | ||
twilio==8.11.0 |