- update: Dockerfile layer reordering to speed up build times and lower image space needed
- add: .dockerignore file to reduce file transfers and remove unneeded files in image
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
FROM rust:1.83 AS builder
|
||||
FROM rust:1.83-slim-bookworm AS builder
|
||||
LABEL authors="raven"
|
||||
|
||||
WORKDIR /usr/src/proto
|
||||
COPY ./proto .
|
||||
|
||||
WORKDIR /usr/src/utils
|
||||
COPY ./utils .
|
||||
|
||||
RUN apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive \
|
||||
apt-get install --no-install-recommends --assume-yes \
|
||||
protobuf-compiler
|
||||
pkg-config \
|
||||
libssl-dev \
|
||||
protobuf-compiler \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /usr/src/utils
|
||||
COPY ./utils .
|
||||
|
||||
WORKDIR /usr/src/proto
|
||||
COPY ./proto .
|
||||
|
||||
WORKDIR /usr/src/world-service
|
||||
COPY ./world-service .
|
||||
|
||||
Reference in New Issue
Block a user