-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 1.1 KB
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ARG VARIANT=11
FROM klein2ms/base-devcontainer:java-${VARIANT} AS base
# Build-time metadata as defined at https://github.com/opencontainers/image-spec/blob/master/annotations.md
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.url="https://github.com/klein2ms/groovy-devcontainer" \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.documentation="https://github.com/klein2ms/groovy-devcontainer" \
org.opencontainers.image.source="https://github.com/klein2ms/groovy-devcontainer" \
org.opencontainers.image.title="groovy-devcontainer" \
org.opencontainers.image.description="A Groovy development container for Visual Studio Code"
ARG GROOVY_VERSION=3.0.6
ARG GRADLE_VERSION=6.7
# Install Groovy and Gradle
RUN su vscode -c "source /usr/local/sdkman/bin/sdkman-init.sh && sdk install groovy \"${GROOVY_VERSION}\"" \
&& su vscode -c "source /usr/local/sdkman/bin/sdkman-init.sh && sdk install gradle \"${GRADLE_VERSION}\""
FROM base AS devcontainer