-
Notifications
You must be signed in to change notification settings - Fork 14
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
6 changed files
with
132 additions
and
1,433 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
name: Fly Deploy | ||
on: | ||
push: | ||
tags: | ||
- v** | ||
branches: | ||
- main | ||
|
||
jobs: | ||
pre-deploy-test: | ||
|
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,15 +1,25 @@ | ||
FROM python:3.12-slim | ||
FROM python:3.12-slim AS builder | ||
|
||
LABEL maintainer="Henry Zhu <[email protected]>" | ||
|
||
COPY requirements.txt . | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends gcc python3-dev python3-pip libxml2-dev libxslt1-dev zlib1g-dev g++ \ | ||
&& pip install -r requirements.txt \ | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get purge -y --auto-remove gcc python3-dev python3-pip libxml2-dev libxslt1-dev zlib1g-dev g++ | ||
&& apt-get clean | ||
RUN python -m pip install --upgrade pip | ||
RUN python -m pip install --upgrade libsass | ||
|
||
FROM python:3.12-slim AS release | ||
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages | ||
ARG VERSION | ||
|
||
LABEL maintainer="Henry Zhu <[email protected]>" | ||
RUN python -m pip install --upgrade pip | ||
|
||
COPY requirements.txt ./ | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
WORKDIR /app | ||
COPY start.sh . | ||
COPY beaverhabits ./beaverhabits | ||
CMD ["sh", "start.sh", "prd"] |
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
Oops, something went wrong.