This repository has been archived on 2020-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
homebase/Dockerfile

34 lines
719 B
Docker
Raw Normal View History

2020-03-25 17:38:57 +00:00
# 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
RUN apt-get update && \
apt-get install --no-install-recommends --yes \
automake \
build-essential \
curl \
git \
libcap2-bin \
libtool \
m4
RUN \
git clone https://github.com/beakerbrowser/homebase /usr/src/app && \
2020-03-25 18:15:48 +00:00
cd /usr/src/app && \
git checkout 474976ff9e839e06c37a83625fe0832fc26fefa1
2020-03-25 17:38:57 +00:00
WORKDIR /usr/src/app
2020-03-25 19:24:55 +00:00
COPY . ${WORKDIR}
2020-03-25 17:38:57 +00:00
RUN npm install --only=production
RUN npm install pm2@4.2.3 -g
EXPOSE 8085
EXPOSE 3282
2020-03-25 17:38:57 +00:00
2020-03-25 20:24:51 +00:00
CMD ["pm2-runtime", "npm", "--", "start"]