Skip to content

Commit

Permalink
Commit something useful to trigger Ci
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelbrm committed Jun 23, 2023
1 parent 22ade03 commit 40cc6bc
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
FROM golang:1.18-alpine as builder


# put certs in builder image
# Put certs in builder image.
RUN apk update
RUN apk add -U --no-cache ca-certificates && update-ca-certificates
RUN apk add make
RUN apk add build-base
RUN apk add git
RUN apk add bash

RUN apk add make build-base git bash

ARG VERSION
ARG BUILD_TIME
Expand All @@ -27,7 +24,8 @@ RUN cd main && CGO_ENABLED=0 GOOS=linux go build \
-o bat-go main.go

FROM alpine:3.15 as base
# put certs in artifact from builder

# Put certs in artifact from builder.
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /src/main/bat-go /bin/

Expand All @@ -38,4 +36,3 @@ FROM base as artifact
COPY --from=builder /src/migrations/ /migrations/
EXPOSE 3333
CMD ["bat-go", "serve", "grant", "--enable-job-workers", "true"]

0 comments on commit 40cc6bc

Please sign in to comment.