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 ubi8 container base image #195

Merged
merged 10 commits into from
May 19, 2022
Next Next commit
use ubi8 container base image
  • Loading branch information
KalmanMeth committed May 1, 2022
commit 193181324bf2d3ac9cdab2a78938b0602e033092
13 changes: 11 additions & 2 deletions contrib/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM docker.io/library/golang:1.17 as builder
FROM registry.access.redhat.com/ubi8/go-toolset:1.16.12-10 as builder
ARG BUILD_VERSION="unknown"

WORKDIR /opt/app-root

# TEMPORARY STEPS UNTIL ubi8 releases a go1.17 image
RUN wget --no-check-certificate https://go.dev/dl/go1.17.6.linux-amd64.tar.gz && tar -xzf go1.17.6.linux-amd64.tar.gz
ENV GOROOT /opt/app-root/go
ENV PATH $GOROOT/bin:$PATH
# END OF LINES TO REMOVE

WORKDIR /app

Expand Down Expand Up @@ -30,4 +39,4 @@ COPY --from=builder /app/confgenerator /app/
# expose ports
EXPOSE 2055

ENTRYPOINT ["/app/flowlogs-pipeline"]
ENTRYPOINT ["/app/flowlogs-pipeline"]