Update Build script for new nodejs installer
This commit is contained in:
parent
28f1337a68
commit
b5c4bc9497
1 changed files with 8 additions and 5 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,12 +1,15 @@
|
||||||
ARG GO_VERSION="1.20"
|
ARG GO_VERSION="1.21"
|
||||||
FROM golang:${GO_VERSION}-bullseye
|
FROM golang:${GO_VERSION}-bullseye
|
||||||
|
|
||||||
ARG HUGO_VERSION="0.115.4"
|
ARG HUGO_VERSION="0.121.1"
|
||||||
ARG NODE_VERSION="18"
|
ARG NODE_VERSION="18"
|
||||||
|
|
||||||
RUN apt update -y
|
RUN apt update -y
|
||||||
RUN apt install tar gzip build-essential -y
|
RUN apt install tar gzip build-essential ca-certificates curl gnupg -y
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && apt-get install -y nodejs
|
RUN mkdir -p /etc/apt/keyrings
|
||||||
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_VERSION.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
RUN apt update -y && apt-get install -y nodejs
|
||||||
RUN npm i -g yarn pnpm
|
RUN npm i -g yarn pnpm
|
||||||
RUN mkdir /tmp/temph
|
RUN mkdir /tmp/temph
|
||||||
RUN mkdir /home/app
|
RUN mkdir /home/app
|
||||||
|
@ -18,4 +21,4 @@ WORKDIR /home/app
|
||||||
# Cleanup
|
# Cleanup
|
||||||
RUN rm -rfv /tmp/temph
|
RUN rm -rfv /tmp/temph
|
||||||
|
|
||||||
ENTRYPOINT [ "/bin/bash" ]
|
ENTRYPOINT [ "/bin/bash" ]
|
||||||
|
|
Loading…
Add table
Reference in a new issue