Pokemon_server / Dockerfile
Jofthomas's picture
Update Dockerfile
8b62f80 verified
raw
history blame
554 Bytes
FROM ubuntu:22.04 as base
WORKDIR /app
ENV NODE_ENV=production
FROM base as build
RUN apt-get update -qq && \
apt-get install -y git curl unzip wget gnupg build-essential lsb-release
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
RUN useradd -m -u 1000 user
RUN chown -R user:user /app /usr/local /tmp
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
# Default port for Pokemon Showdown
EXPOSE 8000
ENTRYPOINT ["/bin/sh", "-c", "node pokemon-showdown"]