Skip to content

Commit

Permalink
Move primary Dockerfile to src/ for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonymodesu committed Jan 10, 2024
1 parent fa76a6a commit 134ac58
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:
--no-cache \
-t $(DOCKER_IMAGE_FULL) \
-t $(DOCKER_IMAGE_LATEST) \
.
./src

run:
DOCKER_IMAGE=$(DOCKER_IMAGE_FULL) \
Expand Down
9 changes: 4 additions & 5 deletions Dockerfile → src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]

# install app dependencies
COPY requirements.txt ./
RUN pip install -r requirements.txt --no-cache-dir

# add app
COPY src /src
COPY . /src

# set working directory
WORKDIR /src

# install app dependencies
RUN pip install -r requirements.txt --no-cache-dir

CMD ["./docker-entrypoint.sh"]

2 changes: 2 additions & 0 deletions src/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

if [ -n "${INIT_RECIPES_CSV}" ];
then
echo "Initialising database with ${INIT_RECIPES_CSV}."
Expand Down
File renamed without changes.

0 comments on commit 134ac58

Please sign in to comment.