File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22
3- FROM python:3.8
3+ FROM python:3.9.12-slim-buster
44
55# Setup environment
66RUN 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)
1711COPY . /cdevents-client
1812
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ check: ## Runs pre-commit hooks on all files
5454 pre-commit run --all-files
5555
5656docker-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 )
You can’t perform that action at this time.
0 commit comments