Skip to content

Commit

Permalink
Add mime-type and package.json bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmcd committed Nov 18, 2018
1 parent 8a9af2c commit 4ea44cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions web-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ RUN go get -v . \
&& npm run build

FROM nginx:alpine

RUN echo "application/wasm wasm" >> /etc/mime.types \
&& sed -i -e 's/wmlc;/wmlc;\n application\/wasm wasm;\n/g' /etc/nginx/mime.types

COPY --from=builder \
/go/src/github.com/maxmcd/webtty/web-client/dist \
/usr/share/nginx/html

15 changes: 10 additions & 5 deletions web-client/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"name": "webtty",
"version": "0.0.1",
"description": "",
"main": "app.js",
"version": "0.0.2",
"description": "webtty web client",
"repository": "",
"repository": {
"type": "git",
"url": "git+https://github.com/maxmcd/webtty.git"
},
"main": "src/app.ts",
"scripts": {
"build": "npm run go-build && parcel build src/index.html --public-url .",
"go-build":
Expand All @@ -11,8 +16,8 @@
"test": "echo notests",
"deploy": "npm run build && gh-pages -d dist"
},
"author": "",
"license": "ISC",
"author": "Max McDonnell",
"license": "MIT",
"dependencies": {
"@babel/core": "^7.1.5",
"@babel/runtime-corejs2": "^7.1.5",
Expand Down

0 comments on commit 4ea44cd

Please sign in to comment.