Skip to content

Instantly share code, notes, and snippets.

@ShawkyZ
Last active May 5, 2024 18:14
Show Gist options
  • Save ShawkyZ/634771fcd8815a2b08e7fddf940941b8 to your computer and use it in GitHub Desktop.
Save ShawkyZ/634771fcd8815a2b08e7fddf940941b8 to your computer and use it in GitHub Desktop.
Node 18 with Go 1.22.2 Dockerfile
FROM node:18-alpine3.18
ARG GOLANG_VERSION=1.22.2
RUN wget https://go.dev/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz && \
rm -rf /usr/local/go && tar -C /usr/local -xzf go${GOLANG_VERSION}.linux-amd64.tar.gz && \
rm go${GOLANG_VERSION}.linux-amd64.tar.gz
ENV PATH="${PATH}:/usr/local/go/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment