Skip to content

Commit effd45d

Browse files
tarekbadrshafrittoli
authored andcommitted
Update docker files & commands
1 parent e0d0456 commit effd45d

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM python:3.8
3+
FROM python:3.9.12-slim-buster
44

55
# Setup environment
66
RUN apt-get update && apt-get install -y \
77
python3-distutils \
88
build-essential
99

10-
# Copy requirements
11-
COPY ./requirements ./requirements
12-
13-
# Installing requirements
14-
RUN pip install -r ./requirements
15-
1610
# Copy needed files (see .dockerignore for what will be included)
1711
COPY . /cdevents-client
1812

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ check: ## Runs pre-commit hooks on all files
5454
pre-commit run --all-files
5555

5656
docker-build: ## Build and package Docker container
57-
docker build -t cdevents-client -f Dockerfile .
57+
docker build -t cdevents -f Dockerfile .
5858

59-
docker-shell: ## Opens a shell
60-
docker run --add-host=host.docker.internal:host-gateway --volume /"$(shell pwd)"/output/:/root/cdevents-client/ -it cdevents-client bash
59+
docker-shell: ## Opens a bash
60+
docker run --rm --network host --volume $(pwd)/output/:/root/cdevents-client/ -it cdevents bash
6161

6262
.PHONY: packages $(PACKAGES)
6363
.PHONY: packages $(INITPACKAGES)

0 commit comments

Comments
 (0)