Skip to content

Commit

Permalink
Merge pull request #77 from loeffel-io/bug/loeffel-io/docker
Browse files Browse the repository at this point in the history
fix docker image
  • Loading branch information
loeffel-io committed May 30, 2022
2 parents 3d00746 + 00470b4 commit c09cbfa
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 6 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ build-npm-linux-arm64:
build-npm-windows:
cp ls-lint-windows.exe npm/bin/ls-lint-windows.exe
chmod +x npm/bin/ls-lint-windows.exe

docker-build:
docker build -f docker/Dockerfile -t ls-lint-dev:latest .

docker-run:
docker run --rm -v ${PWD}:/data ls-lint-dev:latest
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,6 @@ Logo created by [Anastasia Marx](https://www.behance.net/AnastasiaMarx)

## License

ls-lint is open-source software licensed under the MIT license.
ls-lint is open-source software licensed under the MIT license.

[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Floeffel-io%2Fls-lint.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Floeffel-io%2Fls-lint?ref=badge_large)
12 changes: 10 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
FROM golang:1.18 as builder
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify

COPY . .
RUN make build

FROM gcr.io/distroless/base

COPY ls-lint-linux ls-lint
COPY --from=builder /usr/src/app/ls-lint-linux /ls-lint
VOLUME /data
WORKDIR /data
CMD ["/ls-lint"]
ENTRYPOINT ["/ls-lint"]
12 changes: 10 additions & 2 deletions docker/Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
FROM golang:1.18 as builder
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify

COPY . .
RUN make build

FROM gcr.io/distroless/base

COPY ls-lint-linux-arm64 ls-lint
COPY --from=builder /usr/src/app/ls-lint-linux-arm64 /ls-lint
VOLUME /data
WORKDIR /data
CMD ["/ls-lint"]
ENTRYPOINT ["/ls-lint"]
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ls-lint/ls-lint",
"version": "1.11.1",
"version": "1.11.2",
"description": "An extremely fast directory and filename linter",
"repository": "https://github.com/loeffel-io/ls-lint",
"license": "MIT",
Expand Down

0 comments on commit c09cbfa

Please sign in to comment.