Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
19d64821
Commit
19d64821
authored
Aug 31, 2023
by
John Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: new dockerfile
parent
78e26f8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
build-api-image.yml
.github/workflows/build-api-image.yml
+1
-0
Dockerfile
api/Dockerfile
+14
-7
No files found.
.github/workflows/build-api-image.yml
View file @
19d64821
...
...
@@ -5,6 +5,7 @@ on:
branches
:
-
'
main'
-
'
deploy/dev'
-
'
test/new-dockerfile'
release
:
types
:
[
published
]
...
...
api/Dockerfile
View file @
19d64821
FROM
python:3.10-slim
# packages install stage
FROM
python:3.10-slim AS base
LABEL
maintainer="takatost@gmail.com"
COPY
requirements.txt /requirements.txt
RUN
pip
install
--prefix
=
/pkg
-r
requirements.txt
# build stage
FROM
python:3.10-slim AS builder
ENV
FLASK_APP app.py
ENV
EDITION SELF_HOSTED
ENV
DEPLOY_ENV PRODUCTION
...
...
@@ -15,13 +23,12 @@ EXPOSE 5001
WORKDIR
/app/api
RUN
apt-get update
&&
\
apt-get
install
-y
bash curl wget vim gcc g++ python3-dev libc-dev libffi-dev nodejs
COPY
requirements.txt /app/api/requirements.txt
RUN
pip
install
-r
requirements.txt
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
bash curl wget vim gcc g++ python3-dev libc-dev libffi-dev nodejs
\
&&
apt-get autoremove
\
&&
rm
-rf
/var/lib/apt/lists/
*
COPY
--from=base /pkg /usr/local
COPY
. /app/api/
COPY
docker/entrypoint.sh /entrypoint.sh
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment