Last active
January 15, 2023 00:31
-
-
Save pingkunga/881c6e9f077b8018c8a7cc24aa063c2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime | |
COPY bin/Release/net6.0/publish/ /app | |
RUN apt-get update && apt-get install -y libxml2-dev | |
ENV DB2_CLI_DRIVER_INSTALL_PATH="/app/clidriver" | |
ENV LD_LIBRARY_PATH="/app/clidriver/lib:/app/clidriver/lib/libdb2.so" | |
ENV LIBPATH="/app/clidriver/lib" | |
ENV PATH=$PATH:"/app/clidriver/bin" | |
ENV PATH=$PATH:"/app/clidriver/adm" | |
ENV PATH=$PATH:"/app/clidriver/lib" | |
RUN apk add --no-cache tzdata | |
ENV TZ=Asia/Bangkok | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
RUN addgroup --system --gid 10001 invsopgp && adduser --system --uid 1001 --ingroup invsopgp --shell /bin/sh invsbch | |
RUN chown -Rf invsbch:invsopgp /app && chmod -Rf 760 /app | |
USER invsbch | |
WORKDIR /app | |
RUN mkdir /app/BNZStorage | |
ENV ASPNETCORE_URLS=http://+:8080 | |
EXPOSE 8080 | |
ENTRYPOINT ["dotnet", "ds.Invest.WebAPI.dll" , "-buc", "/app" , "-env", "Production"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment