Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM docker.io/gotify/build:1.25.1-linux-amd64

ENV NVM_DIR /root/.nvm
ENV NODE_VERSION 22

RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install 22 \
&& npm install --global yarn
7 changes: 7 additions & 0 deletions .devcontainer/config-environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

make download-tools
go get

cd ui
yarn
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Gotify Server",
//Need to customize the docker build container to add misisng tools (nvm, npm, yarn)
"build": {
"dockerfile": "Dockerfile"
},

"containerEnv": {
"GOTIFY_SERVER_PORT": "8080"
},

// Download required toolchains with `make` and `yarn`
"postCreateCommand": "bash .devcontainer/config-environment.sh"
}
Binary file added server
Binary file not shown.