diff --git a/.goreleaser.yml b/.goreleaser.yml index e27562e..f1a1b96 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -32,6 +32,7 @@ archives: - LICENSE - config/.env.sample - templates + - locales - src: ui/dist/* dst: static strip_parent: false @@ -51,6 +52,8 @@ dockers: - "--platform=linux/amd64" extra_files: - config/.env.sample + - templates + - locales - ui/dist - image_templates: - 'ghcr.io/jramsgz/articpad:{{ .Tag }}-arm64' @@ -67,6 +70,8 @@ dockers: goarch: arm64 extra_files: - config/.env.sample + - templates + - locales - ui/dist docker_manifests: diff --git a/Dockerfile b/Dockerfile index cf37e7c..8e85bd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,13 +5,15 @@ FROM alpine:latest as release WORKDIR /app # Copy the compiled executable. -COPY articpad . +COPY articpad . # Copy the .env file. COPY config/.env.sample ./config/.env # Copy templates. -COPY templates ./templates +COPY templates/ ./templates/ +# Copy locales. +COPY locales/ ./locales/ # Copy the static files. -COPY ui/dist ./static +COPY ui/dist/ ./static/ # Add packages RUN apk -U upgrade \