Remove env from the dockerfile and add it to the makefile
All checks were successful
Docker Build & Push / build-and-publish (push) Successful in 42s
All checks were successful
Docker Build & Push / build-and-publish (push) Successful in 42s
This commit is contained in:
@@ -12,7 +12,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|||||||
|
|
||||||
# Copy the application code into the container
|
# Copy the application code into the container
|
||||||
COPY ./app /code/app
|
COPY ./app /code/app
|
||||||
COPY ./.env /code/.env
|
|
||||||
|
|
||||||
# Expose port 80 to the outside world
|
# Expose port 80 to the outside world
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
1
Makefile
1
Makefile
@@ -9,6 +9,7 @@ build:
|
|||||||
run: build
|
run: build
|
||||||
docker run --rm -it \
|
docker run --rm -it \
|
||||||
-v /mnt/shadowplays/TWIMG-Eligible:/videos:ro \
|
-v /mnt/shadowplays/TWIMG-Eligible:/videos:ro \
|
||||||
|
-v .env:/code/.env:re \
|
||||||
--name $(CONTAINER_NAME) \
|
--name $(CONTAINER_NAME) \
|
||||||
-p 8000:8000 \
|
-p 8000:8000 \
|
||||||
$(IMAGE_NAME)
|
$(IMAGE_NAME)
|
||||||
Reference in New Issue
Block a user