mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 20:59:03 +00:00
Add Set up Docker development environment in README.md (#997)
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -60,8 +60,19 @@ RUN chmod +x /app/scripts/*.sh \
|
||||
# Build api source
|
||||
&& go build -v -o photoview .
|
||||
|
||||
### Copy api and ui to production environment ###
|
||||
FROM --platform=${BUILDPLATFORM:-linux/amd64} debian:bookworm-slim AS final
|
||||
### Build dev image for UI ###
|
||||
FROM ui AS dev-ui
|
||||
|
||||
### Build dev image for API ###
|
||||
FROM api AS dev-api
|
||||
RUN source /app/scripts/set_compiler_env.sh \
|
||||
&& /app/scripts/install_runtime_dependencies.sh \
|
||||
## Install dev tools
|
||||
&& apt update \
|
||||
&& apt install -y reflex sqlite3
|
||||
|
||||
### Build release image ###
|
||||
FROM --platform=${BUILDPLATFORM:-linux/amd64} debian:bookworm-slim AS release
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
# See for details: https://github.com/hadolint/hadolint/wiki/DL4006
|
||||
|
||||
Reference in New Issue
Block a user