-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (23 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
35 lines (23 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use the official Node.js image as the base image
FROM node:latest
# install nginx
RUN apt-get update && apt-get install -y nginx git fcgiwrap spawn-fcgi
ENV GIT_PEAR=/srv/repos/pear
EXPOSE 80
STOPSIGNAL SIGTERM
# Set the working directory inside the container
WORKDIR /app
# Clone the gitpear repository from GitHub
RUN git clone https://github.com/dzdidi/gitpear.git
# Change the working directory to the gitpear directory
WORKDIR /app/gitpear
# Install the dependencies using npm
RUN npm install
# Link the gitpear package globally
RUN npm link
RUN mkdir -p /srv/repos/pear
COPY default /etc/nginx/sites-enabled/default
WORKDIR /app
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
ENTRYPOINT ["/bin/bash", "-c", "/app/entrypoint.sh"]