2022-03-11 08:40:04 +00:00
|
|
|
FROM photoprism/develop:220311-bullseye
|
2022-02-15 19:33:47 +00:00
|
|
|
|
2022-02-19 16:36:39 +00:00
|
|
|
## alternative base images
|
|
|
|
# FROM photoprism/develop:buster # Debian 10, Codename "Buster"
|
|
|
|
# FROM photoprism/develop:impish # Ubuntu 21.10, Codename "Impish Indri"
|
2018-10-31 11:57:01 +00:00
|
|
|
|
2022-02-19 14:32:52 +00:00
|
|
|
# define working directory in container
|
2018-07-20 08:54:31 +00:00
|
|
|
WORKDIR "/go/src/github.com/photoprism/photoprism"
|
2021-09-21 18:31:42 +00:00
|
|
|
|
2022-02-19 14:32:52 +00:00
|
|
|
# copy project source code to container
|
2022-03-11 08:40:04 +00:00
|
|
|
COPY . .
|
|
|
|
|
|
|
|
# copy init scripts to /scripts and change permissions
|
|
|
|
RUN cp -f ./scripts/dist/* /scripts/ && \
|
|
|
|
chmod -R 755 /scripts && \
|
|
|
|
chown -R root:root /scripts
|