Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: reverting dockerfiles due to docker bug #137

Merged
merged 3 commits into from Apr 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions docker/Dockerfile
Expand Up @@ -3,7 +3,6 @@ ARG VERSION
ARG GIT_HASH
ENV GO111MODULE=on

RUN apk add --no-cache ca-certificates
WORKDIR /src

# Allow for caching
Expand All @@ -17,7 +16,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
-o flottbot ./cmd/flottbot

FROM alpine:3.11
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
RUN apk --no-cache add ca-certificates && mkdir config
COPY --from=build /src/flottbot /flottbot

EXPOSE 3000 4000 8080
Expand Down
4 changes: 1 addition & 3 deletions docker/Dockerfile.golang
Expand Up @@ -3,7 +3,6 @@ ARG VERSION
ARG GIT_HASH
ENV GO111MODULE=on

RUN apk add --no-cache ca-certificates
WORKDIR /src

# Allow for caching
Expand All @@ -17,8 +16,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
-o flottbot ./cmd/flottbot

FROM golang:1.14-alpine
RUN mkdir config
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
RUN apk --no-cache add ca-certificates && mkdir config
COPY --from=build /src/flottbot /flottbot

EXPOSE 3000 4000 8080
Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile.python
Expand Up @@ -3,7 +3,6 @@ ARG VERSION
ARG GIT_HASH
ENV GO111MODULE=on

RUN apk add --no-cache ca-certificates
WORKDIR /src

# Allow for caching
Expand All @@ -17,7 +16,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
-o flottbot ./cmd/flottbot

FROM python:3-alpine
RUN mkdir config
RUN apk --no-cache add ca-certificates && mkdir config
COPY --from=build /src/flottbot /flottbot

EXPOSE 8080 3000 4000
Expand Down
3 changes: 1 addition & 2 deletions docker/Dockerfile.ruby
Expand Up @@ -3,7 +3,6 @@ ARG VERSION
ARG GIT_HASH
ENV GO111MODULE=on

RUN apk add --no-cache ca-certificates
WORKDIR /src

# Allow for caching
Expand All @@ -17,7 +16,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
-o flottbot ./cmd/flottbot

FROM ruby:2.7-alpine
RUN apk add --no-cache ruby-dev build-base && mkdir config
RUN apk add --no-cache ca-certificates ruby-dev build-base && mkdir config
COPY --from=build /src/flottbot /flottbot

EXPOSE 8080 3000 4000
Expand Down