forked from colin/resume
22 lines
436 B
Docker
22 lines
436 B
Docker
FROM caddy:2.7-alpine
|
|
|
|
# Install dependencies
|
|
RUN apk add --no-cache nodejs bash
|
|
|
|
# Set working directory
|
|
WORKDIR /srv
|
|
|
|
# Copy website files
|
|
COPY . /srv
|
|
|
|
# Run all update scripts (sitemap, navigation, stories, CSP hashes, accessibility fixes)
|
|
RUN cd /srv && \
|
|
chmod +x update-all.sh && \
|
|
./update-all.sh
|
|
|
|
# Expose port
|
|
EXPOSE 8080
|
|
|
|
# Start Caddy with the local Caddyfile
|
|
CMD ["caddy", "run", "--config", "/srv/Caddyfile.local"]
|