Docker: Remove HOME env from Dockerfiles #1525
May cause issues with multi-stage builds.
This commit is contained in:
parent
3278f1ff6b
commit
123d92bd27
3 changed files with 1 additions and 3 deletions
|
@ -2,5 +2,5 @@ FROM photoprism/development:20210921
|
|||
|
||||
# Set up project directory
|
||||
WORKDIR "/go/src/github.com/photoprism/photoprism"
|
||||
ENV HOME="/go/src/github.com/photoprism/photoprism"
|
||||
|
||||
COPY . .
|
|
@ -142,7 +142,6 @@ RUN chmod 644 /root/.my.cnf /photoprism/.my.cnf
|
|||
|
||||
# Set up project directory
|
||||
WORKDIR "/go/src/github.com/photoprism/photoprism"
|
||||
ENV HOME="/go/src/github.com/photoprism/photoprism"
|
||||
|
||||
# Expose HTTP port 2342, 2343 plus 9515 for chromedriver
|
||||
EXPOSE 2342 2343 9515
|
||||
|
|
|
@ -110,7 +110,6 @@ RUN ldconfig
|
|||
# Set default umask and create photoprism user
|
||||
RUN umask 0000 && useradd photoprism -m -d /photoprism && chmod a+rwx /photoprism
|
||||
WORKDIR /photoprism
|
||||
ENV HOME="/photoprism"
|
||||
|
||||
# Copy files to /photoprism
|
||||
COPY --from=build /root/.local/bin/photoprism /photoprism/bin/photoprism
|
||||
|
|
Loading…
Add table
Reference in a new issue