add Dockerfile

This commit is contained in:
2025-12-22 20:40:01 -05:00
parent dd7bf61b09
commit d4468530fc
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
FROM alpine:3.19
# Install fes runtime and common tools
RUN apk add --no-cache bash curl
# Install fes CLI (replace URL/version if needed)
RUN curl -fsSL https://github.com/vxserver/fes/releases/latest/download/fes-linux-amd64 -o /usr/local/bin/fes \
&& chmod +x /usr/local/bin/fes
WORKDIR /app
# Copy site
COPY . /app
# Expose internal port
EXPOSE 2101
# Use fes to run site on port 3000
CMD ["sh", "-c", "fes run -p 2101 ."]

View File

@@ -0,0 +1,16 @@
FROM alpine:3.19
RUN apk add --no-cache bash curl tar gzip build-base
# Install fes CLI
RUN curl -fsSL https://github.com/vxserver/fes/releases/latest/download/fes-linux-amd64 -o /usr/local/bin/fes \
&& chmod +x /usr/local/bin/fes
WORKDIR /app
# Copy site (including archives)
COPY . /app
EXPOSE 2100
CMD ["sh", "-c", "fes run -p 2100 ."]