Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
text-generation-inference
Commits
cf0d459a
Commit
cf0d459a
authored
Jun 06, 2024
by
Nicolas Patry
Browse files
Revert "Less cache misses on cargo build."
This reverts commit
5aec4154
.
parent
5aec4154
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Dockerfile
Dockerfile
+3
-3
No files found.
Dockerfile
View file @
cf0d459a
...
@@ -15,6 +15,9 @@ RUN cargo chef prepare --recipe-path recipe.json
...
@@ -15,6 +15,9 @@ RUN cargo chef prepare --recipe-path recipe.json
FROM
chef AS builder
FROM
chef AS builder
ARG
GIT_SHA
ARG
DOCKER_LABEL
RUN
PROTOC_ZIP
=
protoc-21.12-linux-x86_64.zip
&&
\
RUN
PROTOC_ZIP
=
protoc-21.12-linux-x86_64.zip
&&
\
curl
-OL
https://github.com/protocolbuffers/protobuf/releases/download/v21.12/
$PROTOC_ZIP
&&
\
curl
-OL
https://github.com/protocolbuffers/protobuf/releases/download/v21.12/
$PROTOC_ZIP
&&
\
unzip
-o
$PROTOC_ZIP
-d
/usr/local bin/protoc
&&
\
unzip
-o
$PROTOC_ZIP
-d
/usr/local bin/protoc
&&
\
...
@@ -24,9 +27,6 @@ RUN PROTOC_ZIP=protoc-21.12-linux-x86_64.zip && \
...
@@ -24,9 +27,6 @@ RUN PROTOC_ZIP=protoc-21.12-linux-x86_64.zip && \
COPY
--from=planner /usr/src/recipe.json recipe.json
COPY
--from=planner /usr/src/recipe.json recipe.json
RUN
cargo chef cook
--profile
release-opt
--recipe-path
recipe.json
RUN
cargo chef cook
--profile
release-opt
--recipe-path
recipe.json
ARG
GIT_SHA
ARG
DOCKER_LABEL
COPY
Cargo.toml Cargo.toml
COPY
Cargo.toml Cargo.toml
COPY
rust-toolchain.toml rust-toolchain.toml
COPY
rust-toolchain.toml rust-toolchain.toml
COPY
proto proto
COPY
proto proto
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment