2024-03-13 20:03:12 +08:00
|
|
|
ARG IMAGE_PREFIX=git.0x7f.app/woj
|
|
|
|
ARG VERSION=latest
|
2023-07-15 18:14:50 +08:00
|
|
|
|
2024-03-13 20:03:12 +08:00
|
|
|
# Base image
|
|
|
|
FROM ${IMAGE_PREFIX}/woj-server-base:${VERSION} AS base
|
2023-07-15 18:14:50 +08:00
|
|
|
|
2023-12-23 16:42:21 +08:00
|
|
|
# UI Builder
|
2024-03-13 20:03:12 +08:00
|
|
|
FROM ${IMAGE_PREFIX}/woj-ui:${VERSION} AS ui
|
2024-01-05 00:24:47 +08:00
|
|
|
RUN find /app -type f -name "*.map" -delete
|
2023-07-15 18:14:50 +08:00
|
|
|
|
2024-03-13 20:03:12 +08:00
|
|
|
# Main image
|
2023-08-11 18:54:00 +08:00
|
|
|
FROM docker.io/library/alpine
|
2023-07-15 18:14:50 +08:00
|
|
|
|
|
|
|
WORKDIR /app
|
2024-03-14 17:27:34 +08:00
|
|
|
RUN apk --no-cache add tzdata ca-certificates bash su-exec
|
2023-07-15 18:14:50 +08:00
|
|
|
|
2024-03-13 20:03:12 +08:00
|
|
|
COPY --from=base /builder/config.docker.yaml /app
|
|
|
|
COPY --from=base /builder/docker-entrypoint.sh /app
|
|
|
|
COPY --from=base /builder/woj /app
|
2023-12-23 16:42:21 +08:00
|
|
|
|
2024-03-13 20:03:12 +08:00
|
|
|
COPY --from=ui /app /app/resource/frontend
|
2023-07-15 18:14:50 +08:00
|
|
|
|
|
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|