Not going to reimplement tapas in crystal

This commit is contained in:
2023-06-01 20:11:40 -03:00
parent ad164ac7f2
commit 0e5a41c170
4 changed files with 2 additions and 19 deletions

View File

@ -1,7 +1,7 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.10 as watchdog
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine as build
RUN apk update && apk upgrade
RUN apk add crystal shards
WORKDIR /home/app
COPY . .
@ -12,6 +12,7 @@ RUN crystal build main.cr -o handler --release --static
RUN strip handler
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine as ship
RUN apk update && apk upgrade
# Add non root user
# Add non root user
RUN addgroup -S app && adduser app -S -G app