-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve Dockerfile quality (#722)
Co-authored-by: Wendong-Fan <[email protected]> Co-authored-by: Wendong <[email protected]>
- Loading branch information
1 parent
fd944b7
commit 0e77fe9
Showing
6 changed files
with
113 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
services: | ||
camel: | ||
image: camel:latest | ||
container_name: camel | ||
image: camel:localdev | ||
container_name: camel-localdev | ||
build: | ||
context: ../ | ||
dockerfile: .container/Dockerfile | ||
volumes: | ||
- ../:/app/camel | ||
env_file: | ||
- .env | ||
command: ["tail", "-f", "/dev/null"] |
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,16 @@ | ||
FROM python:3.10-bullseye | ||
|
||
# Install Poetry | ||
RUN curl -sSL https://install.python-poetry.org | python3 - && \ | ||
ln -s /root/.local/bin/poetry /usr/local/bin/poetry | ||
|
||
# Configurate Poetry | ||
RUN poetry config virtualenvs.create false | ||
|
||
COPY . /app/camel | ||
|
||
WORKDIR /app/camel | ||
|
||
RUN poetry install | ||
|
||
CMD ["tail", "-f", "/dev/null"] |
Oops, something went wrong.