mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-03 08:10:28 +00:00
set env variables in prod container
This commit is contained in:
parent
b672d88e5c
commit
5ee9082301
1 changed files with 4 additions and 1 deletions
|
@ -29,8 +29,11 @@ RUN CGO_ENABLED=1 GOOS=linux go build \
|
|||
# Production Stage
|
||||
FROM alpine:latest
|
||||
|
||||
ENV HBOX_MODE=production
|
||||
ENV HBOX_STORAGE_DATA=/data/
|
||||
ENV HBOX_STORAGE_SQLITE_URL=/data/homebox.db?_fk=1
|
||||
|
||||
RUN apk --no-cache add ca-certificates
|
||||
COPY ./backend/config.template.yml /data/config.yml
|
||||
RUN mkdir /app
|
||||
COPY --from=builder /go/bin/api /app
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue