This commit is contained in:
2024-06-29 20:38:34 -03:00
parent 3d529019e6
commit 4bb5ab631e
3 changed files with 13 additions and 4 deletions

View File

@ -6,7 +6,8 @@ COPY shard.yml ./
RUN mkdir src/
COPY src/* src/
RUN shards install
RUN shards build
RUN shards build -d --error-trace
RUN strip bin/faaso-daemon
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine as ship
RUN apk add tinyproxy multirun openssl zlib yaml pcre2 gc libevent libgcc
@ -15,7 +16,7 @@ RUN apk add tinyproxy multirun openssl zlib yaml pcre2 gc libevent libgcc
RUN addgroup -S app && adduser app -S -G app
WORKDIR /home/app
COPY tinyproxy/tinyproxy.conf ./
COPY tinyproxy.conf ./
COPY --from=build /home/app/bin/faaso-daemon ./
CMD ["/usr/bin/multirun", "./faaso-daemon", "tinyproxy -d -c tinyproxy.conf"]