add Dockerfile
This commit is contained in:
19
docs.vxserver.dev/Dockerfile
Normal file
19
docs.vxserver.dev/Dockerfile
Normal 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 ."]
|
||||||
16
fsd.vxserver.dev/Dockerfile
Normal file
16
fsd.vxserver.dev/Dockerfile
Normal 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 ."]
|
||||||
Reference in New Issue
Block a user