-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker to getting started (#470)
- Loading branch information
1 parent
a957cf5
commit 9bc3eaf
Showing
8 changed files
with
192 additions
and
176 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,16 +1,8 @@ | ||
FROM python:3 | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
|
||
RUN mkdir /code | ||
WORKDIR /code | ||
COPY pyproject.toml /code/ | ||
COPY poetry.lock /code/ | ||
RUN pip install poetry && poetry config virtualenvs.create false | ||
RUN poetry install | ||
|
||
COPY . /code/ | ||
RUN poetry install | ||
FROM python:3.8 | ||
|
||
# requires poetry build before docker build | ||
COPY dist/human_lambdas*whl human-lambdas-0.0.0-py3-none-any.whl | ||
RUN pip install human-lambdas-0.0.0-py3-none-any.whl | ||
EXPOSE 8000 | ||
ENTRYPOINT [ "human-lambdas" ] | ||
ENTRYPOINT "bash" |
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,3 +1,5 @@ | ||
buildimg: buildpy | ||
docker build . -t hlambdas/human-lambdas:latest | ||
buildpy: buildweb | ||
poetry install | ||
poetry build | ||
|
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.