Updated docker settings
This commit is contained in:
parent
c210ab36ee
commit
efcd77cb99
17
Dockerfile
17
Dockerfile
@ -1,9 +1,14 @@
|
|||||||
# Install development environment
|
# Install development environment
|
||||||
FROM blitzprog/aero
|
FROM blitzprog/aero
|
||||||
RUN git clone --progress --verbose --depth=1 https://github.com/animenotifier/database ~/.aero/db/arn
|
|
||||||
|
|
||||||
# Expect ~/notify.moe to be mounted as a volume
|
# Download database
|
||||||
RUN cd ~/notify.moe && \
|
RUN git clone --progress --depth=1 https://github.com/animenotifier/database ~/.aero/db/arn
|
||||||
tsc && \
|
|
||||||
pack && \
|
# Download notify.moe dependencies
|
||||||
go build
|
RUN curl -s -o go.mod https://raw.githubusercontent.com/animenotifier/notify.moe/go/go.mod && \
|
||||||
|
curl -s -o go.sum https://raw.githubusercontent.com/animenotifier/notify.moe/go/go.sum && \
|
||||||
|
go mod download && \
|
||||||
|
rm go.*
|
||||||
|
|
||||||
|
# Create empty working directory
|
||||||
|
WORKDIR /home/developer/notify.moe
|
@ -28,6 +28,7 @@ docker-compose run notify.moe
|
|||||||
|
|
||||||
## Run the server
|
## Run the server
|
||||||
|
|
||||||
|
* Compile TypeScript files using: `tsc`
|
||||||
* Start the web server in notify.moe directory using: `run`
|
* Start the web server in notify.moe directory using: `run`
|
||||||
* In your browser, import the file `security/default/root.crt` as a trusted Root authority
|
* In your browser, import the file `security/default/root.crt` as a trusted Root authority
|
||||||
* Open `https://beta.notify.moe`
|
* Open `https://beta.notify.moe`
|
||||||
|
@ -5,5 +5,8 @@ services:
|
|||||||
image: animenotifier/notify.moe
|
image: animenotifier/notify.moe
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
|
network_mode: bridge
|
||||||
ports:
|
ports:
|
||||||
- "443:4001"
|
- "443:4001"
|
||||||
|
volumes:
|
||||||
|
- .:/home/developer/notify.moe
|
2
makefile
2
makefile
@ -73,6 +73,8 @@ assets:
|
|||||||
@pack
|
@pack
|
||||||
clean:
|
clean:
|
||||||
find . -type f | xargs file | grep "ELF.*executable" | awk -F: '{print $1}' | xargs rm
|
find . -type f | xargs file | grep "ELF.*executable" | awk -F: '{print $1}' | xargs rm
|
||||||
|
rm -rf ./components
|
||||||
|
find . -type f | grep /scripts/ | grep .js | xargs rm
|
||||||
ports:
|
ports:
|
||||||
ifeq ($(OSNAME),LINUX)
|
ifeq ($(OSNAME),LINUX)
|
||||||
$(IPTABLES) -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 4000
|
$(IPTABLES) -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 4000
|
||||||
|
Loading…
Reference in New Issue
Block a user