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

Use ubuntu 20 as the docker base image #2124 #2134

Closed
wants to merge 8 commits into from
Closed
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
6 changes: 3 additions & 3 deletions docker/Dockerfile
songzhouran marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ RUN cargo build --locked --profile $PROFILE $BUILD_ARGS
# ==========================
# stage 2: packaging
# ==========================
FROM ubuntu:22.04
FROM ubuntu:20.04
LABEL maintainer="Trust Computing GmbH <info@litentry.com>"

ARG PROFILE

COPY --from=builder /litentry/target/$PROFILE/litentry-collator /usr/local/bin

RUN echo "deb http://th.archive.ubuntu.com/ubuntu jammy main" >> /etc/apt/sources.list
songzhouran marked this conversation as resolved.
Show resolved Hide resolved
# install netcat for healthcheck
RUN apt-get update && apt-get install -yq netcat && cp /usr/bin/nc /usr/local/bin/
RUN apt-get update && apt install libc6 libstdc++6 -y && apt-get install -yq netcat && cp /usr/bin/nc /usr/local/bin/

RUN useradd -m -u 1000 -U -s /bin/sh -d /litentry litentry && \
mkdir -p /data /litentry/.local/share && \
Expand Down