feat: add /files/{file} GET and DELETE methods

This commit is contained in:
cătălin 2022-06-28 14:11:37 +02:00
commit 4a4a0a2149
No known key found for this signature in database
GPG key ID: C378F1E869F05A95
7 changed files with 252 additions and 60 deletions

View file

@ -5,14 +5,14 @@ ARG gid=1000
ARG uid=1000
RUN mkdir -p "$APP_ROOT" \
&& addgroup --system sfu -g $gid \
&& adduser -h "$APP_ROOT" --disabled-password --system -u $uid --ingroup sfu sfu
&& adduser -h "$APP_ROOT" --disabled-password --system -u $uid --ingroup sfu sfu \
&& apk add curl~=7
WORKDIR "$APP_ROOT"
USER sfu:sfu
FROM base AS build
COPY go.mod .
COPY main.go .
COPY logger.go .
COPY *.go ./
RUN go build \
&& rm -r go.mod *.go