-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
8 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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
FROM python:3.11.6-alpine3.18 AS build-stage | ||
LABEL maintainer="Andreas Violaris" | ||
COPY app /app | ||
WORKDIR /app | ||
COPY . /instaunfollowers | ||
WORKDIR /instaunfollowers | ||
RUN pip install --upgrade pip | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
FROM python:3.11.6-alpine3.18 | ||
ENV PYTHONPATH=/usr/local/lib/python3.11/site-packages | ||
COPY --from=build-stage $PYTHONPATH $PYTHONPATH | ||
COPY --from=build-stage /app /app | ||
WORKDIR /app | ||
COPY --from=build-stage /instaunfollowers /instaunfollowers | ||
WORKDIR /instaunfollowers | ||
HEALTHCHECK --interval=12s --timeout=12s --start-period=30s CMD python3 healthcheck.py | ||
ENTRYPOINT ["python3", "app.py"] | ||
ENTRYPOINT ["python3", "-m", "app.app"] |
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,6 +0,0 @@ | ||
"""Imports""" | ||
import sys | ||
# pylint: disable-next=consider-using-from-import | ||
import app.upd as updd | ||
|
||
sys.modules['updd'] = updd | ||
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
Empty file.
File renamed without changes.
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,5 +1,3 @@ | ||
version: "3.8" | ||
|
||
services: | ||
instaunfollowers: | ||
build: | ||
|
File renamed without changes.
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