summaryrefslogblamecommitdiff
path: root/Bastillefile
blob: 734dcd9e0b3f5567f675bbd36a5c2f859a78631a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                 

                        
                       


                                        
                           

                  

                                                                                                                

               
                                                                                                                                                                           

                

                                                                 


           


                             


                      



                           
# Dirs and mounts
PRE mkdir -p /tmp/build
#CMD mkdir -p /tmp/build
CMD mkdir -p /var/db/gl
FSTAB /zroot/gl /var/db/gl nullfs rw 0 0

# Prereqs
PKG nginx yarn sqlite3 rust

# Download sources
CMD curl -kf http://192.168.1.50:3000/53hornet/theglassyladies/archive/master.tar.gz -o /tmp/build/master.tar.gz
CMD tar -xzvf /tmp/build/master.tar.gz -C /tmp/build

# Build backend
CMD CARGO_HOME=/tmp/build SQLITE3_LIB_DIR=/usr/local/lib SQLITE3_INCLUDE_DIR=/usr/local/include cargo install --root /usr/local --path /tmp/build/theglassyladies/dichroism

# Build frontend
CMD cd /tmp/build/theglassyladies/iridescence ; yarn ; yarn build
CMD mv /tmp/build/theglassyladies/iridescence/dist /var/www

# Config
OVERLAY usr

# Launch
CMD cd /var/db/gl ; dichroism
SYSRC nginx_enable=YES
SERVICE nginx start

# Cleanup
CMD rm -rf /tmp/build
CMD pkg remove -y yarn rust
CMD pkg autoremove -y