mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Using Ubuntu 23 throws an error "groupadd: GID '1000' already exists" when trying to build. Ubuntu 22 works fine. There should be no difference between building C3 on Ubuntu 22 vs 23. To avoid issues raised it's best to move to single Ubuntu version that builds the compiler.
17 lines
391 B
Docker
17 lines
391 B
Docker
|
|
ARG UBUNTU_VERSION
|
|
FROM ubuntu:$UBUNTU_VERSION
|
|
|
|
ARG DEPS
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive && export TERM=xterm && apt-get update && apt-get install -y build-essential cmake zlib1g zlib1g-dev \
|
|
$DEPS && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ARG GID=1000
|
|
ARG UID=1000
|
|
|
|
RUN groupadd -o --gid=$GID c3c && useradd --gid=$GID --uid=$GID --create-home --shell /bin/bash c3c
|
|
|
|
USER c3c
|