ШБР Провеочный Dockerfile

mail@pastecode.io avatar
unknown
dockerfile
a year ago
701 B
1
Indexable
Never
#Это проверочный образ. Используем его для создания образа, чтобы потом проверить с бд на docker-compose:
#docker build -t my_docker .

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/