Skip to content

Commit

Permalink
add docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
basiooo committed May 5, 2024
1 parent aa0317f commit b1ac8ec
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
andromodem*
main
.github
.idea
*node_modules
11 changes: 11 additions & 0 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM openwrt/rootfs:latest

USER root

RUN mkdir /var/lock && opkg update && opkg install node && opkg install node-npm && opkg install golang && opkg install bash

COPY . ./andromodem
WORKDIR /andromodem



14 changes: 14 additions & 0 deletions docker-compose.build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3.8'
services:
andromodem:
build:
context: .
dockerfile: Dockerfile.build
volumes:
- .:/andromodem
- /andromodem/templates/andromodem-dashboard/node_modules
command: >
sh -c "npm --prefix ./templates/andromodem-dashboard/ install &&
npm --prefix ./templates/andromodem-dashboard/ run build &&
go mod download &&
./build.sh"

0 comments on commit b1ac8ec

Please sign in to comment.