Skip to content

Commit

Permalink
Use Ubuntu LTS as base image instead of CentOS (#787)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano authored Jan 20, 2022
1 parent ae68c7a commit fdb1c10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit fdb1c10

Please sign in to comment.