mirror of
https://github.com/ente-io/ente.git
synced 2025-05-27 21:20:04 +00:00
With the latest Docker update (27.0.3), it now warns about the "FROM" and "AS" in the Dockerfile not matching. E.g. when building the server docker image: > WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
21 lines
462 B
Plaintext
21 lines
462 B
Plaintext
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
|