ШБР Dockerfile-решение

mail@pastecode.io avatar
unknown
dockerfile
7 months ago
694 B
1
Indexable
Never
#Это образ-решение. При его создании запустится сборка, а затем запуск сервисов.

FROM ghcr.io/userver-framework/docker-userver-build-base:v1a AS builder

WORKDIR /enrollment_template

COPY ./third_party/userver/tools/docker /tools

COPY . /enrollment_template

RUN useradd --create-home --no-user-group user

RUN chown -R user:users /enrollment_template

EXPOSE 8080

RUN /tools/run_as_user.sh make build-release

RUN mkdir /usr/local/etc/enrollment_template/
RUN cp configs/* /usr/local/etc/enrollment_template/
RUN chown -R user:users /usr/local/etc/enrollment_template/

RUN /tools/run_as_user.sh make service-start-release