blob: 59da7b49834411c2ed1bdefe3970b394b3f90b07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
FROM alpine:3.13 as builder
RUN apk update && apk upgrade && apk add go git
RUN git clone https://github.com/asciimoo/morty
RUN cd morty && go build
FROM alpine:3.13
COPY --from=builder /morty/morty /usr/local/morty/
RUN apk --no-cache add ca-certificates \
&& rm -f /var/cache/apk/* \
&& adduser -D -h /usr/local/morty -s /bin/false morty morty
USER morty
ENV DEBUG=true
EXPOSE 3000
|