Bootstrap homebase application
This commit is contained in:
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@ -0,0 +1,30 @@
|
||||
# Adapted from the upstream docker container packaged by the Homebase project
|
||||
# https://github.com/beakerbrowser/homebase/commit/48fe5c7d1b9b72e07e29452e3e1ad969c120aaab
|
||||
|
||||
FROM node:8-stretch
|
||||
|
||||
ENV NODE_ENV production
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install --no-install-recommends --yes \
|
||||
automake \
|
||||
build-essential \
|
||||
curl \
|
||||
libcap2-bin \
|
||||
libtool \
|
||||
m4
|
||||
|
||||
RUN curl -Lo homebase.zip https://github.com/beakerbrowser/homebase/archive/1.1.2.zip \
|
||||
&& unzip homebase.zip \
|
||||
&& mv homebase-1.1.2/* /usr/src/app \
|
||||
&& rm homebase.zip
|
||||
|
||||
RUN npm install --only=production
|
||||
RUN npm install pm2@4.2.3 -g
|
||||
|
||||
EXPOSE 3282
|
||||
EXPOSE 8085
|
||||
|
||||
CMD [ "pm2-runtime", "npm", "--", "start" ]
|
Reference in New Issue
Block a user