Skip to content

Commit

Permalink
fix: update dockerfile to add ports + alpine as base (#50)
Browse files Browse the repository at this point in the history
### Description

OB-XXX Update Dockerfile to use alpine as base and expose some ports

### Checklist
- [ ] Created tests which fail without the change (if possible)
- [ ] Extended the README / documentation, if necessary
  • Loading branch information
obs-gh-alexlew authored Jul 10, 2024
1 parent b4089e5 commit 61ea539
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packaging/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ RUN tar czhf journalctl.tar.gz /bin/journalctl $(ldd /bin/journalctl | grep -oP
# however, we can copy full directory as root (/) to be base file structure for scratch image
RUN mkdir /output && tar xf /journalctl.tar.gz --directory /output

FROM scratch
FROM alpine:3.20.0
ADD packaging/docker/observe-agent /etc/observe-agent
COPY --from=systemd /output/ /
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=agent /output/ /
COPY --from=directories /var/lib/observe-agent/filestorage /var/lib/observe-agent/filestorage

EXPOSE 4317 55680 55679 13133
ENTRYPOINT ["/observe-agent"]
CMD ["start"]

0 comments on commit 61ea539

Please sign in to comment.