1
0
forked from apps/featurer
featurer/server/Dockerfile.featurer

19 lines
490 B
Docker
Raw Normal View History

2024-10-12 13:04:09 +05:00
FROM code.pztrn.name/containers/go-toolbox:v4 AS build
WORKDIR /featurer
COPY . /featurer
RUN --mount=type=cache,target="$GOCACHE" task server:cmd:featurer:build
FROM debian:12.6-slim
RUN apt-get update && \
apt-get install -y ca-certificates iputils-ping && \
rm -rf /var/lib/apt/* /var/cache/apt/*
COPY --from=build /featurer/_build/featurer /featurer
COPY --from=build /usr/local/bin/dlv /dlv
COPY server/entrypoint-featurer.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]