Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix base image #300

Merged
merged 1 commit into from
Mar 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions docker/Standalone.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Use a specific version tag for the alpine base image
FROM alpine:3.14.2 AS base
FROM rust:1 AS base

# Install required packages
RUN apk add --no-cache clang libssl1.1 llvm pkgconfig eudev-dev gmp libc6-compat
RUN apt-get update && \
apt-get install --yes git python3 python3-pip pkg-config clang curl libssl-dev llvm libudev-dev libgmp3-dev protobuf-compiler libc6 && \
rm -rf /var/lib/apt/lists/*

# Create a non-root user to run
RUN adduser -u 1000 -G users -D -h /webb webb \
RUN adduser --uid 1000 --ingroup users --disabled-password --gecos "" --home /webb webb \
&& mkdir -p /data /webb/.local/share/webb \
&& chown -R webb:users /data /webb/.local/share/webb \
&& ln -s /data /webb/.local/share/webb


# Set the user and working directory
USER webb
WORKDIR /webb
Expand All @@ -18,8 +21,9 @@ WORKDIR /webb
FROM rust:1 AS builder

# Install required packages
RUN apt-get update && apt-get install -y git python3 python3-pip pkg-config clang curl libssl-dev llvm libudev-dev libgmp3-dev protobuf-compiler libc6 && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y git python3 python3-pip pkg-config clang curl libssl-dev llvm libudev-dev libgmp3-dev protobuf-compiler libc6 && \
rm -rf /var/lib/apt/lists/*

RUN pip3 install dvc

Expand Down