-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add Dockerfile linter - add new rake tasks for docker and docker hub - now app works perfectly from the container! - remove slack notifier
- Loading branch information
Showing
6 changed files
with
83 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: dockerfile | ||
|
||
on: push | ||
|
||
jobs: | ||
linter: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Lint Dockerfile | ||
uses: hadolint/hadolint-action@master | ||
with: | ||
dockerfile: "Dockerfile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
FROM golang:1.16-alpine AS builder | ||
WORKDIR /go/src/github.com/vigo/lsvirtualenvs | ||
COPY . . | ||
RUN apk add --no-cache git | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o lsvirtualenvs . | ||
|
||
FROM alpine:latest | ||
RUN apk --no-cache add ca-certificates | ||
RUN apk add --no-cache git=2.34.1-r0 \ | ||
ca-certificates=20211220-r0 \ | ||
&& CGO_ENABLED=0 GOOS=linux \ | ||
go build -a -installsuffix cgo -o lsvirtualenvs . | ||
|
||
FROM alpine:3.15 | ||
COPY --from=builder /go/src/github.com/vigo/lsvirtualenvs/lsvirtualenvs /bin/lsvirtualenvs | ||
ENTRYPOINT ["/bin/lsvirtualenvs"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters