Skip to content

Commit

Permalink
Updated action
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Sep 25, 2021
1 parent ed4b547 commit ef57853
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM golang:1.16-alpine as builder

WORKDIR /app

COPY go.mod ./
COPY go.sum ./
RUN go mod download

COPY *.go ./
COPY cmd ./cmd

RUN go build -o auto_doc *.go

FROM alpine:3.14.2 as main

COPY --from=builder /app/auto_doc /biauto_doc

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENV PATH="/app/bin:${PATH}"

ENTRYPOINT ["/entrypoint.sh"]

5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -e

auto_doc --help

0 comments on commit ef57853

Please sign in to comment.