This commit is contained in:
Tommy Parnell
2017-01-19 04:57:03 -05:00
committed by Tommy Parnell
parent f4f9bb68a1
commit 37d9f93f71
5 changed files with 38 additions and 1 deletions

View File

@@ -18,7 +18,6 @@ def index():
@app.route("/<int:how_many_bytes>")
def gen(how_many_bytes):
time.sleep(0.1)
return Response(
os.read(urandom, how_many_bytes),
content_type="application/octet-stream")

View File

@@ -0,0 +1,15 @@
FROM microsoft/dotnet:1.1.0-sdk-projectjson
WORKDIR /app
ADD project.json project.json
RUN ["dotnet", "restore"]
ADD . .
RUN ["dotnet", "build", "-c", "Release"]
EXPOSE 80/tcp
CMD ["dotnet", "run", "-c", "Release", "--server.urls", "http://*:80"]

View File

@@ -0,0 +1,13 @@
FROM microsoft/dotnet:1.1.0-sdk-projectjson
WORKDIR /app
ADD project.json .
RUN ["dotnet", "restore"]
ADD . .
RUN ["dotnet", "build", "-c", "Release"]
ENTRYPOINT ["dotnet", "run", "-c", "Release"]

View File

10
02-Phoenix/ui/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM node:boron-wheezy
RUN npm install -g bower
ADD package.json .
RUN npm install
ADD .bowerrc .
ADD bower.json .
RUN bower install --allow-root
ADD . .
EXPOSE 80
CMD ["npm", "run", "start"]