Skip to content

Commit

Permalink
removing data volume docker settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Silva committed Apr 18, 2024
1 parent c033bbe commit 27f9c7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,14 @@ RUN apt-get update && apt-get install -y \
libjpeg-dev \
zlib1g-dev

VOLUME [ "/data", "/source", "/destination", "/app" ]
VOLUME [ "/source", "/destination" ]

WORKDIR /app

COPY . .

RUN pip install --no-cache-dir -r requirements.txt && \
ln -s /destination /app/engine/static
# ln -s /destination /app/engine/static && \
# mv /app/data /data && \
# ln -s /data /app

EXPOSE 23276

Expand Down
5 changes: 2 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ RUN apt-get update && apt-get install -y \
RUN git clone https://github.com/pnatel/PhotoFolder.git --branch master --single-branch && \
mv /PhotoFolder /app

VOLUME [ "/data", "/source", "/destination" ]
VOLUME [ "/source", "/destination" ]

WORKDIR /app

RUN pip install --no-cache-dir -r requirements.txt && \
ln -s /destination /app/engine/static && \
ln -s /data /app
ln -s /destination /app/engine/static

EXPOSE 23276

Expand Down

0 comments on commit 27f9c7c

Please sign in to comment.