mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
17 lines
470 B
Text
17 lines
470 B
Text
FROM node:20
|
|
|
|
# Install global packages
|
|
RUN npm install -g gulp-cli mocha
|
|
|
|
# Copy package.json and package-lock.json into image
|
|
WORKDIR /usr/src/habitica
|
|
COPY ["package.json", "package-lock.json", "./"]
|
|
# Copy the remaining source files in.
|
|
COPY . /usr/src/habitica
|
|
# Provide a default configuration for build-time tooling
|
|
RUN cp config.json.example config.json
|
|
# Install dependencies
|
|
RUN npm install
|
|
RUN npm run postinstall
|
|
RUN npm run client:build
|
|
RUN gulp build:prod
|