Skip to content

Commit

Permalink
Adding missing chrome app to the docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
matang28 committed Feb 3, 2021
1 parent 0c21b73 commit ef2b399
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@ RUN CGO_ENABLED=0 go build \
-o /app .

FROM alpine:latest
RUN apk --no-cache add ca-certificates

RUN apk update && apk add --no-cache nmap && \
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
apk update && \
apk add --no-cache \
ca-certificates \
chromium \
harfbuzz \
"freetype>2.8" \
ttf-freefont \
nss

COPY --from=builder /app .

RUN mkdir /templates
Expand All @@ -23,4 +35,6 @@ ENV SERVER_HOST="localhost"
ENV SERVER_PORT="8080"
ENV GIN_MODE="release"

ADD examples /templates

CMD ["./app"]

0 comments on commit ef2b399

Please sign in to comment.