Skip to content

Commit

Permalink
Merge pull request #2 from tnightengale/teghan/touch_up_make_commands
Browse files Browse the repository at this point in the history
Touch Up Makefile
  • Loading branch information
tnightengale authored Oct 1, 2022
2 parents b82230a + 7d09708 commit 15affe6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ WORKDIR /code/
COPY ["poetry.lock", "pyproject.toml", "/code/"]
RUN poetry install --no-interaction

COPY . /code/
COPY [".", "/code/"]
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ build: ## Build the image
@docker build -t $(APP_NAME):latest .

run: ## Start the container
@docker run --rm -p 8501:8501 $(APP_NAME):latest
@docker run --rm $(APP_NAME):latest

it: ## Start the container interactively in bash
@docker run --rm -it --entrypoint bash $(APP_NAME):latest
@docker run --rm -it --entrypoint /bin/bash $(APP_NAME):latest

up: ## Rebuild the image and start the container
make build && make run
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "template-poetry-docker"
version = "0.1.0"
version = "0.1.1"
description = "A starting point for python apps using poetry and docker."
authors = ["Teghan Nightengale <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 15affe6

Please sign in to comment.