Skip to content
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
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ COPY hack/reduce-snapshot.sh /usr/local/bin
# OpenShift preflight check requires a license
COPY --from=build /build/LICENSE /licenses/LICENSE

# Make it possible to use the "conforma" command instead of "ec" if you prefer
RUN ln -s /usr/local/bin/ec /usr/local/bin/conforma

# OpenShift preflight check requires a non-root user
USER 1001

Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ COPY hack/reduce-snapshot.sh /usr/local/bin
# OpenShift preflight check requires a license
COPY --from=build /build/LICENSE /licenses/LICENSE

# Make it possible to use the "conforma" command instead of "ec" if you prefer
RUN ln -s /usr/local/bin/ec /usr/local/bin/conforma

# OpenShift preflight check requires a non-root user
USER 1001

Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ dist-container: clean
--platform $(BUILD_LOCAL_PLATFORM) \
--build-arg BUILD_SUFFIX=local \
--build-arg BUILD_LIST=$(BUILD_LOCAL_ARCH) \
--volume "$(GOCACHE_DIR)":/go/cache:Z \
--volume "$(GOMODCACHE_DIR)":/go/mod:Z \
--env GOCACHE=/go/cache \
--env GOMODCACHE=/go/mod \
.

# For local debugging of the above
Expand Down
Loading