Compare commits
3 Commits
b05c75fae4
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8056d2849e | ||
|
|
9839997ad7 | ||
|
|
58492619e7 |
11
.dockerignore
Normal file
11
.dockerignore
Normal file
@ -0,0 +1,11 @@
|
||||
# Ignore node_modules
|
||||
node_modules/
|
||||
|
||||
# Ignore README
|
||||
README.md
|
||||
|
||||
# Ignore Dockerfile
|
||||
Dockerfile
|
||||
|
||||
#Ignore dotfiles
|
||||
.*
|
||||
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# Install package manager dependencies
|
||||
RUN apk add --no-cache nodejs npm
|
||||
|
||||
# Copy in data
|
||||
WORKDIR /app/
|
||||
COPY . .
|
||||
|
||||
# Install npm dependencies
|
||||
RUN npm i
|
||||
|
||||
EXPOSE 8000/tcp
|
||||
CMD ["npm", "start"]
|
||||
1006
package-lock.json
generated
1006
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -18,7 +18,7 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http,
|
||||
|
||||
$scope.lastMate = "";
|
||||
|
||||
$http.get("/mates")
|
||||
$http.get("mates")
|
||||
.then((r) =>
|
||||
{
|
||||
var json = angular.fromJson(r.data);
|
||||
@ -33,7 +33,7 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http,
|
||||
// Don't bother updating during a cooldown
|
||||
if ($scope.cooldown) return;
|
||||
|
||||
$http.post("/mates")
|
||||
$http.post("mates")
|
||||
.then((r) =>
|
||||
{
|
||||
var json = angular.fromJson(r.data);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user