Spaces:
Running
Running
File size: 737 Bytes
11b3474 d368b5c 11b3474 d368b5c 11b3474 d368b5c 11b3474 d368b5c 11b3474 d368b5c 3911b56 11b3474 581358a 11b3474 d5570f4 11b3474 d5570f4 11b3474 25d99b6 8b62f80 11b3474 25d99b6 |
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 |
FROM ubuntu:22.04
# Install prerequisites
RUN apt-get update -qq && \
apt-get install -y git curl unzip wget gnupg build-essential && \
rm -rf /var/lib/apt/lists/*
# Install Node.js 18
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
# Create user
RUN useradd -m -u 1000 user
USER user
# Set working directory to the user's home
WORKDIR /home/user
# Clone Pokémon Showdown
RUN git clone https://github.com/smogon/pokemon-showdown.git
# Change to the cloned directory and install deps
WORKDIR /home/user/pokemon-showdown
RUN npm install --production
# Expose default Showdown port
EXPOSE 7860
# Run the server
CMD ["node", "pokemon-showdown","7860","start","--no-security"] |