Fix accumulated bugs

This commit is contained in:
Luke Parker
2023-11-06 18:12:53 -05:00
parent c9003874ad
commit b65ba17007
8 changed files with 10 additions and 140 deletions

View File

@@ -2,7 +2,7 @@ FROM rust:1.73-slim-bookworm as builder
LABEL description="STAGE 1: Build"
# Upgrade and add dev dependencies
RUN apt update && apt upgrade -y && apt install -y pkg-config clang libssl-dev && apt autoremove -y && apt clean
RUN apt update && apt upgrade -y && apt install -y pkg-config clang && apt autoremove -y && apt clean
# Add files for build
ADD common /serai/common
@@ -51,8 +51,8 @@ FROM debian:bookworm-slim as image
COPY --from=mimalloc libmimalloc.so /usr/lib
RUN echo "/usr/lib/libmimalloc.so" >> /etc/ld.so.preload
# Upgrade packages and install openssl
RUN apt update && apt upgrade -y && apt install -y ca-certificates libssl-dev
# Upgrade packages and install ca-certificates
RUN apt update && apt upgrade -y && apt install -y ca-certificates
# Switch to a non-root user
RUN useradd --system --create-home --shell /sbin/nologin processor