Skip to content

Instantly share code, notes, and snippets.

View robzhu's full-sized avatar

Robert Zhu robzhu

View GitHub Profile
@robzhu
robzhu / Dockerfile
Last active August 29, 2015 14:23
Dockerfile for building an nginx development container
#Dockerfile for building an nginx development container
FROM debian
RUN apt-get update
RUN apt-get install curl vim git nginx -y
EXPOSE 80
WORKDIR /etc/nginx
@robzhu
robzhu / Dockerfile
Created May 13, 2015 15:55
Debian/Apache Dockerfile
FROM debian
RUN apt-get update && apt-get install -y apache2
EXPOSE 80 443
CMD ["apache2ctl", "-D FOREGROUND"]
@robzhu
robzhu / Startup.cs
Last active March 23, 2022 09:51
OWIN Startup configuration for JSON serialization
using System.Collections.Generic;
using System.Web.Http;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
using Owin;
using Swashbuckle.Application;
namespace Project
{