Created
January 18, 2019 12:14
-
-
Save lucax88x/7aae234379f48cd49d334661398d3fb6 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
# compiles & run charon | |
FROM microsoft/dotnet:2.2-sdk AS compiler | |
COPY src /build | |
WORKDIR /build/codebase/DAP.Console.Charon | |
RUN dotnet restore | |
RUN dotnet publish -c Release -o out | |
FROM microsoft/dotnet:2.2-aspnetcore-runtime | |
COPY --from=compiler /build/codebase/DAP.Console.Charon/out ./DAP.Console.Charon | |
### TODO: figure out to get stuffs from another image, do I have do the same installation process of the image by copy pasting? | |
# # runs ftp | |
# FROM stilliard/pure-ftpd:hardened as ftp | |
# CMD /run.sh -l puredb:/etc/pure-ftpd/pureftpd.pdb -E -j -R -P $PUBLICHOST | |
# EXPOSE 21 30000-30009 | |
## TEMPORARY UNTIL FTP IS WORKING | |
RUN mkdir -p /home/marco | |
# supervisor | |
RUN apt-get update && apt-get install -y supervisor | |
RUN mkdir -p /var/log/supervisor | |
COPY src/codebase/DAP.Console.Charon/supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
ENTRYPOINT ["/usr/bin/supervisord"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment