[release] v0.5.12-unstable
This commit is contained in:
parent
2b3b19eb15
commit
34269131c7
38
dockerfile
38
dockerfile
|
@ -6,20 +6,21 @@ EXPOSE 443 80
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ca-certificates openssl
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# install go 1.20.2
|
|
||||||
RUN apt-get install -y wget curl
|
|
||||||
RUN wget https://golang.org/dl/go1.20.2.linux-amd64.tar.gz
|
|
||||||
RUN tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz
|
|
||||||
ENV PATH=$PATH:/usr/local/go/bin
|
ENV PATH=$PATH:/usr/local/go/bin
|
||||||
RUN rm go1.20.2.linux-amd64.tar.gz
|
|
||||||
|
|
||||||
# install nodejs 18.16.0
|
RUN apt-get update && apt-get install -y ca-certificates openssl && \
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
apt-get install -y wget curl && \
|
||||||
RUN apt-get install -y nodejs
|
apt-get install -y nodejs && \
|
||||||
|
apt-get install -y wget curl && \
|
||||||
|
wget https://golang.org/dl/go1.20.2.linux-amd64.tar.gz && \
|
||||||
|
tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz && \
|
||||||
|
rm go1.20.2.linux-amd64.tar.gz && \
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
||||||
|
apt-get install -y nodejs && \
|
||||||
|
apt-get remove -y wget curl && \
|
||||||
|
apt-get autoremove -y
|
||||||
|
|
||||||
COPY go.mod ./
|
COPY go.mod ./
|
||||||
COPY go.sum ./
|
COPY go.sum ./
|
||||||
|
@ -30,16 +31,13 @@ COPY package-lock.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN ls
|
RUN npm run client-build && \
|
||||||
RUN npm run client-build
|
chmod +x build.sh && \
|
||||||
RUN chmod +x build.sh
|
./build.sh && \
|
||||||
RUN ./build.sh
|
rm -rf /usr/local/go \
|
||||||
|
/tmp/* \
|
||||||
# clean up
|
/var/lib/apt/lists/* \
|
||||||
RUN apt-get remove -y wget curl nodejs
|
/var/tmp/*
|
||||||
RUN apt-get autoremove -y
|
|
||||||
RUN rm -rf node_modules
|
|
||||||
RUN rm -rf /usr/local/go
|
|
||||||
|
|
||||||
WORKDIR /app/build
|
WORKDIR /app/build
|
||||||
|
|
||||||
|
|
|
@ -6,20 +6,21 @@ EXPOSE 443 80
|
||||||
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y ca-certificates openssl
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# install go 1.20.2
|
|
||||||
RUN apt-get install -y wget curl
|
|
||||||
RUN wget https://golang.org/dl/go1.20.2.linux-arm64.tar.gz
|
|
||||||
RUN tar -C /usr/local -xzf go1.20.2.linux-arm64.tar.gz
|
|
||||||
ENV PATH=$PATH:/usr/local/go/bin
|
ENV PATH=$PATH:/usr/local/go/bin
|
||||||
RUN rm go1.20.2.linux-arm64.tar.gz
|
|
||||||
|
|
||||||
# install nodejs 18.16.0
|
RUN apt-get update && apt-get install -y ca-certificates openssl && \
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
apt-get install -y wget curl && \
|
||||||
RUN apt-get install -y nodejs
|
apt-get install -y nodejs && \
|
||||||
|
apt-get install -y wget curl && \
|
||||||
|
wget https://golang.org/dl/go1.20.2.linux-arm64.tar.gz && \
|
||||||
|
tar -C /usr/local -xzf go1.20.2.linux-arm64.tar.gz && \
|
||||||
|
rm go1.20.2.linux-arm64.tar.gz && \
|
||||||
|
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
||||||
|
apt-get install -y nodejs && \
|
||||||
|
apt-get remove -y wget curl && \
|
||||||
|
apt-get autoremove -y
|
||||||
|
|
||||||
COPY go.mod ./
|
COPY go.mod ./
|
||||||
COPY go.sum ./
|
COPY go.sum ./
|
||||||
|
@ -30,16 +31,13 @@ COPY package-lock.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN ls
|
RUN npm run client-build && \
|
||||||
RUN npm run client-build
|
chmod +x build.sh && \
|
||||||
RUN chmod +x build.sh
|
./build.sh && \
|
||||||
RUN ./build.sh
|
rm -rf /usr/local/go \
|
||||||
|
/tmp/* \
|
||||||
# clean up
|
/var/lib/apt/lists/* \
|
||||||
RUN apt-get remove -y wget curl nodejs
|
/var/tmp/*
|
||||||
RUN apt-get autoremove -y
|
|
||||||
RUN rm -rf node_modules
|
|
||||||
RUN rm -rf /usr/local/go
|
|
||||||
|
|
||||||
WORKDIR /app/build
|
WORKDIR /app/build
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue