ШБР

mail@pastecode.io avatar
unknown
dockerfile
a year ago
472 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 -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/