update Dockerfiles
This commit is contained in:
@@ -1,19 +1,12 @@
|
||||
FROM alpine:3.19
|
||||
FROM fedora:43
|
||||
|
||||
# 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 \
|
||||
RUN curl -fsSL https://git.vxserver.dev/fSD/fports/raw/branch/main/x86_64/fes -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 ."]
|
||||
CMD ["sh", "-c", "/usr/local/bin/fes -p 2101 run ."]
|
||||
|
||||
@@ -1,16 +1,12 @@
|
||||
FROM alpine:3.19
|
||||
FROM fedora:43
|
||||
|
||||
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 \
|
||||
RUN curl -fsSL https://git.vxserver.dev/fSD/fports/raw/branch/main/x86_64/fes -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 ."]
|
||||
CMD ["sh", "-c", "/usr/local/bin/fes -p 2100 run ."]
|
||||
|
||||
Reference in New Issue
Block a user