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