20 lines
503 B
Text
20 lines
503 B
Text
|
FROM fedora:40
|
||
|
ARG JETBRAINS_DEPENDENCIES
|
||
|
|
||
|
# Set environment variables
|
||
|
ENV BOX_NAME="go"
|
||
|
|
||
|
# Install required packages and setup sources
|
||
|
RUN dnf install -y \
|
||
|
$JETBRAINS_DEPENDENCIES \
|
||
|
golang \
|
||
|
&& dnf clean all \
|
||
|
&& go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||
|
|
||
|
# Link outside tooling
|
||
|
RUN alias docker="podman"
|
||
|
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/podman
|
||
|
|
||
|
# Command to run on container start
|
||
|
CMD ["distrobox-enter", "--name", "$BOX_NAME"]
|