Skip to content

Commit

Permalink
fix: dockerfile setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsm-dev committed Sep 24, 2022
1 parent c6094b2 commit d178d78
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
FROM golang:1.19.1-alpine3.15 as builder
RUN apk add --no-cache alpine-sdk=1.0-r0
RUN apk add --no-cache alpine-sdk=1.0-r1
WORKDIR /build
COPY [ ".", "." ]
RUN make build

FROM alpine:3.16.2 as release
RUN apk --no-cache add \
ca-certificates=20191127-r7 \
bash=5.1.8-r0 \
bash-completion=2.11-r4 && \
echo "source <(loli completion bash)" >> ~/.bashrc
COPY --from=builder [ "/build/bin/loli", "/usr/local/bin/loli" ]
RUN chmod +x /usr/local/bin/loli

ENTRYPOINT [ "loli" ]
CMD ["--help"]

0 comments on commit d178d78

Please sign in to comment.