Jofthomas commited on
Commit
158f500
·
verified ·
1 Parent(s): e118f9b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -4
Dockerfile CHANGED
@@ -1,9 +1,19 @@
1
- # Base image: Node 16 (LTS)
2
  FROM node:18
3
 
4
- # Create an app directory inside the container
5
  WORKDIR /app
6
 
7
- RUN git clone https://github.com/smogon/pokemon-showdown.git .
 
8
 
9
- RUN ./pokemon-showdown
 
 
 
 
 
 
 
 
 
 
 
 
1
  FROM node:18
2
 
3
+ # Create an app directory
4
  WORKDIR /app
5
 
6
+ # Clone Showdown source
7
+ RUN git clone https://github.com/smogon/pokemon-showdown.git .
8
 
9
+ # Install dependencies
10
+ RUN npm install --legacy-peer-deps
11
+
12
+ # Copy the example config so the server starts (you can edit if needed)
13
+ RUN cp config/config-example.js config/config.js
14
+
15
+ # Expose the desired port (e.g. 8000)
16
+ EXPOSE 8000
17
+
18
+ # Run the server when the container starts
19
+ CMD ["node", "pokemon-showdown", "8000"]