mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Updated docker file to use Node (#8704)
This commit is contained in:
parent
409b5d5965
commit
c8b6e8ea7c
1 changed files with 5 additions and 32 deletions
37
Dockerfile
37
Dockerfile
|
|
@ -1,43 +1,16 @@
|
||||||
FROM ubuntu:trusty
|
FROM node:boron
|
||||||
|
|
||||||
MAINTAINER Sabe Jones <sabe@habitica.com>
|
|
||||||
|
|
||||||
# Avoid ERROR: invoke-rc.d: policy-rc.d denied execution of start.
|
|
||||||
RUN echo -e '#!/bin/sh\nexit 0' > /usr/sbin/policy-rc.d
|
|
||||||
|
|
||||||
# Install prerequisites
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get install -y \
|
|
||||||
build-essential \
|
|
||||||
curl \
|
|
||||||
git \
|
|
||||||
libfontconfig1 \
|
|
||||||
libfreetype6 \
|
|
||||||
libkrb5-dev \
|
|
||||||
python
|
|
||||||
|
|
||||||
# Install NodeJS
|
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
|
|
||||||
RUN apt-get install -y nodejs
|
|
||||||
|
|
||||||
# Install npm@latest
|
|
||||||
RUN curl -sL https://www.npmjs.org/install.sh | sh
|
|
||||||
|
|
||||||
# Clean up package management
|
|
||||||
RUN apt-get clean
|
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Install global packages
|
# Install global packages
|
||||||
RUN npm install -g gulp grunt-cli bower mocha
|
RUN npm install -g gulp grunt-cli bower mocha
|
||||||
|
|
||||||
# Clone Habitica repo and install dependencies
|
# Clone Habitica repo and install dependencies
|
||||||
WORKDIR /habitrpg
|
RUN mkdir -p /usr/src/habitrpg
|
||||||
RUN git clone https://github.com/HabitRPG/habitica.git /habitrpg
|
WORKDIR /usr/src/habitrpg
|
||||||
|
RUN git clone https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN bower install --allow-root
|
RUN bower install --allow-root
|
||||||
|
|
||||||
# Create environment config file and build directory
|
# Create Build dir
|
||||||
RUN cp config.json.example config.json
|
|
||||||
RUN mkdir -p ./website/build
|
RUN mkdir -p ./website/build
|
||||||
|
|
||||||
# Start Habitica
|
# Start Habitica
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue