ШБР Dockerfile

Используем его для создания образа, чтобы потом проверить с бд на docker-compose: docker build -t my_docker .
mail@pastecode.io avatar
unknown
dockerfile
2 years ago
472 B
3
Indexable
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 -m -p "" 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/