From 7d0970843c06334ef48e7eb9b58d7b217d68db5e Mon Sep 17 00:00:00 2001 From: Teghan Nightengale Date: Sat, 1 Oct 2022 09:02:48 -0400 Subject: [PATCH] touch Dockerfile COPY, touch Makefile it --- Dockerfile | 2 +- Makefile | 4 ++-- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9c996d7..969abfd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,4 @@ WORKDIR /code/ COPY ["poetry.lock", "pyproject.toml", "/code/"] RUN poetry install --no-interaction -COPY . /code/ +COPY [".", "/code/"] diff --git a/Makefile b/Makefile index da35a89..cc60297 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 2a2b07b..19550d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "MIT"