use databaseInfo file
This commit is contained in:
@ -41,14 +41,10 @@ RUN cd /tmp/work && ./generateAll.sh -k2c
|
||||
# final container
|
||||
FROM wollud1969/dotnetcore5sdk:1.0.0
|
||||
|
||||
ENV Database__Host "xxx"
|
||||
ENV Database__User "xxx"
|
||||
ENV Database__Password "xxx"
|
||||
ENV Database__Name "xxx"
|
||||
|
||||
RUN \
|
||||
useradd -d /opt/service -m service && \
|
||||
mkdir /opt/service/output && chown service:service /opt/service/output
|
||||
mkdir /opt/service/output && chown service:service /opt/service/output && \
|
||||
mkdir /opt/service/config && chown service:service /opt/service/config
|
||||
|
||||
USER service
|
||||
WORKDIR /opt/service
|
||||
@ -59,6 +55,7 @@ COPY --from=stage2-builder /tmp/work/output/ ./output/
|
||||
RUN ./generateAll.sh -kb
|
||||
|
||||
EXPOSE 8080
|
||||
VOLUME /opt/service/config
|
||||
|
||||
CMD [ "./generateAll.sh", "-kx" ]
|
||||
|
||||
|
Reference in New Issue
Block a user