/
githubmirror
/
tpcc-postgres
Обзор
Документация
Войти
/
githubmirror
/
tpcc-postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docker/benchbase/fullimage/Dockerfile
28 строк
1 KB
Brian Kroth
Dev build cycle improvements (#277)
03 апр 2023, 01:56
Не верифицирован
03 апр 2023, 01:56
8ad5f1d
Код
Авторство
О чём код?
# Use a smaller base image that only has the jre, not the full jdk. #FROM --platform=linux eclipse-temurin:17-jre AS fullimage FROM eclipse-temurin:17-jre AS fullimage LABEL org.opencontainers.image.source = "https://github.com/cmu-db/benchbase/" # Make sure the image is patched and up to date. RUN apt update && apt -y upgrade && apt clean && rm -rf /var/lib/apt/lists/* # Add a containeruser that allows vscode/codespaces to map the local host user # (often uid 1000) to some non-root user inside the container. ARG CONTAINERUSER_UID=1000 ARG CONTAINERUSER_GID=1000 RUN groupadd --non-unique --gid ${CONTAINERUSER_GID} containergroup \ && useradd --non-unique --create-home --no-user-group --comment 'Container User' \ --uid ${CONTAINERUSER_UID} --gid ${CONTAINERUSER_GID} containeruser RUN mkdir -p /benchbase/results && chown -R containeruser:containergroup /benchbase/results USER containeruser WORKDIR /benchbase VOLUME /benchbase/results # Only copy the content necessary for running (not building) benchbase over to the image. # These files should have been built using the devcontainer by the # build-full-image.sh script. COPY --chown=containeruser:containergroup . /benchbase/ ENTRYPOINT ["/benchbase/entrypoint.sh"] CMD ["--help"]