fix: dockerfile deprecated features issue (#71)

This commit is contained in:
Victorien Gauch
2024-09-20 14:05:28 +02:00
committed by GitHub
parent dbdb913015
commit 70d16abaf1
2 changed files with 8 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ COPY . .
RUN rm -rf src/synctx && pnpm run -F operations build
FROM node:18-slim as builder-synctx
FROM node:18-slim AS builder-synctx
ARG TARGETPLATFORM
@@ -35,9 +35,9 @@ RUN apt-get update \
&& oclif pack tarballs --targets="${OCLIF_TARGET}" \
&& tar -xvf dist/synctx-*.tar.gz
FROM node:18-slim as release
FROM node:18-slim AS release
ENV NODE_ENV production
ENV NODE_ENV=production
ENV PATH="${PATH}:/opt/synctx/bin"
WORKDIR /usr/src/app

View File

@@ -6,13 +6,13 @@
# G O + R U S T B U I L D E R
#
###############################
FROM golang:1.22.2-alpine as go-builder
FROM golang:1.22.2-alpine AS go-builder
RUN apk add --no-cache rust cargo bash make
WORKDIR /usr/src/
COPY --from=corset . ./corset
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse
ENV CARGO_HOME /usr/local/cargo
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
ENV CARGO_HOME=/usr/local/cargo
WORKDIR /usr/src/corset/
@@ -55,8 +55,8 @@ COPY --from=go-builder /usr/src/prover/bin/controller /opt/linea/prover/controll
RUN mkdir -p /opt/linea/prover/config
# Useful ENV variables that you may want to pass at runtime
ENV GOMEMLIMIT 340GiB
ENV CONFIG_FILE "/opt/linea/prover/config/config.toml"
ENV GOMEMLIMIT=340GiB
ENV CONFIG_FILE="/opt/linea/prover/config/config.toml"
ENV PATH="${PATH}:/opt/linea/prover/"