aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 2615327a4708d1df2b03d6ff1bb0c80c96e87690 (plain)
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
FROM node:latest

# Install git
RUN apt-get update && apt-get install -y git

# Clone the app repo
RUN git clone https://github.com/vitling/acid-banger /app

# Set working directory
WORKDIR /app

# Install python3 for the web service
RUN apt-get install -y python3

# Install Node.js prerequisites
RUN npm install -g typescript webpack webpack-cli

# Build the app
RUN ./build.sh

# Expose port
EXPOSE 8088

# Start the web server
CMD ["python3", "-m", "http.server", "8088"]