results
This commit is contained in:
committed by
Tommy Parnell
parent
f4f9bb68a1
commit
37d9f93f71
@@ -18,7 +18,6 @@ def index():
|
|||||||
|
|
||||||
@app.route("/<int:how_many_bytes>")
|
@app.route("/<int:how_many_bytes>")
|
||||||
def gen(how_many_bytes):
|
def gen(how_many_bytes):
|
||||||
time.sleep(0.1)
|
|
||||||
return Response(
|
return Response(
|
||||||
os.read(urandom, how_many_bytes),
|
os.read(urandom, how_many_bytes),
|
||||||
content_type="application/octet-stream")
|
content_type="application/octet-stream")
|
||||||
|
|||||||
15
02-Phoenix/Hashr/Dockerfile
Normal file
15
02-Phoenix/Hashr/Dockerfile
Normal 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"]
|
||||||
13
02-Phoenix/Worker/Dockerfile
Normal file
13
02-Phoenix/Worker/Dockerfile
Normal 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"]
|
||||||
0
02-Phoenix/docker-compose.yml
Normal file
0
02-Phoenix/docker-compose.yml
Normal file
10
02-Phoenix/ui/Dockerfile
Normal file
10
02-Phoenix/ui/Dockerfile
Normal 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"]
|
||||||
Reference in New Issue
Block a user