Skip to content

Commit

Permalink
dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
makiuchi-d committed Nov 27, 2024
1 parent 700f2a6 commit daa5c5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM golang:1.22

ARG protoc_ver="24.2"
ARG protoc_ver="27.3"

RUN apt-get update && apt-get install -y unzip && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
Expand Down
16 changes: 5 additions & 11 deletions wsnet2-dashboard/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,20 @@
FROM node:18.18.2-bullseye-slim
FROM node:22.11.0-bookworm-slim

RUN apt-get update && apt-get install -y wget make unzip && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
wget -O /wait-for-it.sh https://github.com/vishnubob/wait-for-it/raw/master/wait-for-it.sh > /dev/null 2>&1 && \
chmod +x /wait-for-it.sh

ARG go_ver="1.22.0"
ARG gopherjs_ver="v1.19.0-beta1"
ARG gopherjs_go="go1.19.13"
ARG protoc_ver="24.2"
ARG go_ver="1.23.3"
ARG protoc_ver="27.3"

ENV PATH=/root/go/bin:/go/bin:$PATH
ENV GOPHERJS_GOROOT=/root/sdk/${gopherjs_go}

RUN cd / && \
wget -O go.tar.gz https://go.dev/dl/go${go_ver}.linux-$([ $(uname -m) = aarch64 ] && echo -n arm64 || echo -n amd64).tar.gz && \
tar xvf go.tar.gz && \
wget -q -O go.tar.gz https://go.dev/dl/go${go_ver}.linux-$([ $(uname -m) = aarch64 ] && echo -n arm64 || echo -n amd64).tar.gz && \
tar xf go.tar.gz && \
rm go.tar.gz && \
go install github.com/makiuchi-d/arelo@latest && \
go install github.com/gopherjs/gopherjs@${gopherjs_ver} && \
go install golang.org/dl/${gopherjs_go}@latest && \
$gopherjs_go download && \
wget -O protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v${protoc_ver}/protoc-${protoc_ver}-linux-$(if [ $(uname -m) = "aarch64" ]; then echo aarch_64; else echo x86_64; fi).zip && \
unzip -o protoc.zip "bin/*" "include/*" -d /usr/local && \
rm protoc.zip
Expand Down

0 comments on commit daa5c5f

Please sign in to comment.