Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add Dockerfile-x86 for X86

Neeraj Guptab7a10bb5ffd3
diff --git a/Dockerfile-x86 b/Dockerfile-x86
new file mode 100644
index 0000000000..23a877cb9f
--- /dev/null
+++ b/Dockerfile-x86
@@ -0,0 +1,20 @@
+FROM golang:1.20-alpine3.17@sha256:9c2f89db6fda13c3c480749787f62fed5831699bb2c32881b8f327f1cf7bae42 as builder386
+RUN apt-get update
+RUN apt-get install -y gcc
+RUN apt-get install -y git
+RUN apt-get install -y pkg-config
+RUN apt-get install -y libsodium-dev
+
+
+ENV GOOS=linux
+
+WORKDIR /etc/ente/
+RUN uname -a
+COPY go.mod .
+COPY go.sum .
+RUN go mod download
+
+
+COPY . .
+RUN --mount=type=cache,target=/root/.cache/go-build \
+ go build -o ente-cli main.go