mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-27 01:39:34 +02:00
Compare commits
7 Commits
edcdf9f5df
...
9dfa6616c5
Author | SHA1 | Date | |
---|---|---|---|
|
9dfa6616c5 | ||
|
907e3c8208 | ||
|
b3a12d7f12 | ||
|
98ab49c1b2 | ||
|
12f408dc0a | ||
|
c088b08e77 | ||
|
bc92824b4c |
7
.dockerignore
Normal file
7
.dockerignore
Normal file
@ -0,0 +1,7 @@
|
||||
# .dockerignore
|
||||
node_modules
|
||||
*.log
|
||||
*.md
|
||||
.gitignore
|
||||
Dockerfile
|
||||
.env
|
47
Dockerfile
Normal file
47
Dockerfile
Normal file
@ -0,0 +1,47 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
ARG NODE_VERSION=22.14
|
||||
ARG OS=alpine
|
||||
|
||||
FROM node:${NODE_VERSION}-${OS}
|
||||
|
||||
# Create non-root user
|
||||
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
||||
|
||||
# Install git (for potential runtime needs)
|
||||
RUN apk add --no-cache git
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Enable and prepare pnpm
|
||||
RUN corepack enable && corepack prepare pnpm@10 --activate
|
||||
|
||||
COPY . .
|
||||
|
||||
# Copy package files
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
|
||||
# Install all dependencies, skipping postinstall
|
||||
RUN --mount=type=cache,target=/home/appuser/.pnpm-store \
|
||||
pnpm install --frozen-lockfile && \
|
||||
rm -rf /home/appuser/.pnpm-store/*
|
||||
|
||||
# Change ownership
|
||||
RUN chown -R appuser:appgroup /app
|
||||
|
||||
# Switch to non-root user
|
||||
USER appuser
|
||||
|
||||
# Set environment variables
|
||||
ENV VITE_BYPASS_LOGIN=1 \
|
||||
VITE_BYPASS_TUTORIAL=0 \
|
||||
NEXT_TELEMETRY_DISABLED=1 \
|
||||
PNP_HOME=/home/appuser/.shrc \
|
||||
NODE_ENV=development \
|
||||
PORT=8000
|
||||
|
||||
# Expose port
|
||||
EXPOSE $PORT
|
||||
|
||||
# Start the app in development mode
|
||||
CMD ["pnpm", "run", "start:podman"]
|
11
docs/podman.md
Normal file
11
docs/podman.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Using Podman
|
||||
|
||||
## Requirements
|
||||
|
||||
* `podman >=5.x`
|
||||
|
||||
## Steps
|
||||
|
||||
1. `podman build -t pokerogue -f Dockerfile .`
|
||||
2. `podman run --rm -p 8000:8000 localhost/pokerogue`
|
||||
3. Visit `http://localhost:8000/`
|
@ -6,6 +6,7 @@
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
"start:dev": "vite --mode development",
|
||||
"start:podman": "vite --mode development --host 0.0.0.0 --port $PORT",
|
||||
"build": "vite build",
|
||||
"build:beta": "vite build --mode beta",
|
||||
"preview": "vite preview",
|
||||
|
@ -1865,27 +1865,43 @@ export const trainerConfigs: TrainerConfigs = {
|
||||
.setPartyMemberFunc(
|
||||
0,
|
||||
getRandomPartyMemberFunc([
|
||||
SpeciesId.METAPOD,
|
||||
SpeciesId.LEDYBA,
|
||||
SpeciesId.CLEFFA,
|
||||
SpeciesId.WOOPER,
|
||||
SpeciesId.TEDDIURSA,
|
||||
SpeciesId.REMORAID,
|
||||
SpeciesId.HOUNDOUR,
|
||||
SpeciesId.SILCOON,
|
||||
SpeciesId.PLUSLE,
|
||||
SpeciesId.VOLBEAT,
|
||||
SpeciesId.PACHIRISU,
|
||||
SpeciesId.SILCOON,
|
||||
SpeciesId.METAPOD,
|
||||
SpeciesId.IGGLYBUFF,
|
||||
SpeciesId.SPINDA,
|
||||
SpeciesId.BONSLY,
|
||||
SpeciesId.PETILIL,
|
||||
SpeciesId.EEVEE,
|
||||
SpeciesId.SPRITZEE,
|
||||
SpeciesId.MILCERY,
|
||||
SpeciesId.PICHU,
|
||||
]),
|
||||
)
|
||||
.setPartyMemberFunc(
|
||||
1,
|
||||
getRandomPartyMemberFunc(
|
||||
[
|
||||
SpeciesId.KAKUNA,
|
||||
SpeciesId.SPINARAK,
|
||||
SpeciesId.IGGLYBUFF,
|
||||
SpeciesId.PALDEA_WOOPER,
|
||||
SpeciesId.PHANPY,
|
||||
SpeciesId.MANTYKE,
|
||||
SpeciesId.ELECTRIKE,
|
||||
SpeciesId.CASCOON,
|
||||
SpeciesId.MINUN,
|
||||
SpeciesId.ILLUMISE,
|
||||
SpeciesId.EMOLGA,
|
||||
SpeciesId.CASCOON,
|
||||
SpeciesId.KAKUNA,
|
||||
SpeciesId.CLEFFA,
|
||||
SpeciesId.SPINDA,
|
||||
SpeciesId.MIME_JR,
|
||||
SpeciesId.COTTONEE,
|
||||
SpeciesId.SWIRLIX,
|
||||
SpeciesId.FIDOUGH,
|
||||
SpeciesId.EEVEE,
|
||||
],
|
||||
TrainerSlot.TRAINER_PARTNER,
|
||||
|
Loading…
Reference in New Issue
Block a user