Not going to reimplement tapas in crystal
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user