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

Use Ubuntu LTS as base image instead of CentOS #787

Merged
merged 2 commits into from
Jan 20, 2022
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Update Gorilla to 1.8.0. [#759](https://github.com/elastic/package-registry/pull/759)
* Support package signatures. [#760](https://github.com/elastic/package-registry/pull/760)
* Update Go runtime to 1.17.3. [#764](https://github.com/elastic/package-registry/pull/764)
* Use Ubuntu LTS as base image instead of CentOS [#787](https://github.com/elastic/package-registry/pull/787)

### Deprecated

Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ RUN go build .


# Run binary
FROM centos:7
FROM ubuntu:20.04

# Get dependencies
# mailcap - installs "/etc/mime.types" used by the package-registry binary
RUN yum install -y zip rsync mailcap && yum clean all
RUN apt-get update && \
apt-get install -y mime-support zip rsync curl && \
apt-get clean all

# Move binary from the builder image
COPY --from=builder /package-registry/package-registry /package-registry/package-registry
Expand Down