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

Fix Dockerfile format #56

Merged
merged 1 commit into from
Sep 2, 2024
Merged
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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM openjdk:18-slim as openjdk
FROM openjdk:18-slim AS openjdk

FROM python:3.9-slim as python
FROM python:3.9-slim AS python

COPY --from=openjdk /usr/local/openjdk-* /usr/local/openjdk
ENV JAVA_HOME /usr/local/openjdk

Check warning on line 6 in Dockerfile

View workflow job for this annotation

GitHub Actions / 🏗️ Docker image

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
RUN update-alternatives --install /usr/bin/java java /usr/local/openjdk/bin/java 1

RUN --mount=type=cache,target=/var/cache/apt \
Expand Down