Compare commits
2 Commits
3fc28bded1
...
6ba67b9f8e
| Author | SHA1 | Date | |
|---|---|---|---|
| 6ba67b9f8e | |||
| 353e844bf6 |
Binary file not shown.
+27
@@ -0,0 +1,27 @@
|
|||||||
|
FROM node:22-alpine AS builder
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Copy the book source files
|
||||||
|
COPY . /app/flug
|
||||||
|
|
||||||
|
# Set the working directory to the book folder
|
||||||
|
WORKDIR /app/flug
|
||||||
|
|
||||||
|
# Install honkit globally and build the book
|
||||||
|
RUN npm install -g vite && \
|
||||||
|
npm install && \
|
||||||
|
vite build
|
||||||
|
|
||||||
|
# Final Stage: Serve with Nginx
|
||||||
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
# Copy the rendered HTML from the builder stage
|
||||||
|
COPY --from=builder /app/flug/dist /usr/share/nginx/html
|
||||||
|
|
||||||
|
# Expose port 80
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
# Use the default Nginx configuration to serve static files
|
||||||
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
@@ -1,3 +1,23 @@
|
|||||||
# Faux Linux User Group presentations
|
# Faux Linux User Group presentations
|
||||||
|
|
||||||
This repository contains the FLUG presentations.
|
This repository contains the FLUG presentations.
|
||||||
|
|
||||||
|
## Serving localls
|
||||||
|
|
||||||
|
Run once to install Vite globally:
|
||||||
|
```bash
|
||||||
|
npm install -g vite
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
Run the development server:
|
||||||
|
```bash
|
||||||
|
vite serve
|
||||||
|
```
|
||||||
|
|
||||||
|
## Building docker image
|
||||||
|
|
||||||
|
To build the Docker image, run:
|
||||||
|
```bash
|
||||||
|
docker buildx build --platform linux/arm64 --push -t docker.tipsy.codes/flug:20260519 .
|
||||||
|
```
|
||||||
|
|||||||
+13
-4
@@ -1,12 +1,15 @@
|
|||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>FLUG Presentations</title>
|
<title>FLUG Presentations</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: system-ui, -apple-system, sans-serif;
|
font-family:
|
||||||
|
system-ui,
|
||||||
|
-apple-system,
|
||||||
|
sans-serif;
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
@@ -52,6 +55,12 @@
|
|||||||
<a href="/20260403-HelloLinux/index.html">Hello Linux</a>
|
<a href="/20260403-HelloLinux/index.html">Hello Linux</a>
|
||||||
<div class="date">April 3, 2026</div>
|
<div class="date">April 3, 2026</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="/20260501-HomeLab/FLUG_Presentation_Slides.pdf"
|
||||||
|
>Home Lab</a
|
||||||
|
>
|
||||||
|
<div class="date">May 1, 2026</div>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user