authelia/internal/suites/example/compose/authelia/Dockerfile.backend
Amir Zarrinkafsh 74721a9f41
feat: go:embed static assets (#1733)
* feat: go:embed static assets

Go 1.16 introduced the ability to embed files within a generated binary directly with the go tool chain. This simplifies our dependencies and the significantly improves the development workflow for future developers.

Key points to note:

Due to the inability to embed files that do not reside within the local package we need to duplicate our `config.template.yml` within `internal/configuration`.

To avoid issues with the development workflow empty mock files have been included within `internal/server/public_html`. These are substituted with the respective generated files during the CI/CD and build workflows.

* fix(suites): increase ldap suite test timeout

* fix(server): fix swagger asset CSP
2021-02-22 10:07:06 +11:00

20 lines
346 B
Docker

FROM golang:1.16-alpine
ARG USER_ID
ARG GROUP_ID
# gcc and musl-dev are required for building go-sqlite3
RUN addgroup --gid ${GROUP_ID} dev && \
adduser --uid ${USER_ID} -G dev -D dev && \
apk --no-cache add gcc musl-dev git
RUN mkdir -p /config && chown dev:dev /config
USER dev
ENV PATH="/app:${PATH}"
VOLUME /config
EXPOSE 9091