Skip to content

Commit a3768d6

Browse files
committed
add sample Dockerfile and make sync target
Signed-off-by: Aabid Sofi <[email protected]>
1 parent c4f043f commit a3768d6

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM alpine
2+
ENV HUGO_VERSION=0.147.9
3+
ENV GO_VERSION=1.22.4-r0
4+
ENV NODE_VERSION=20.14.0
5+
6+
# Install base dependencies
7+
RUN apk add --no-cache \
8+
curl git bash make libc6-compat \
9+
openssl unzip tar npm nodejs \
10+
go
11+
12+
# Install Hugo Extended
13+
RUN curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz \
14+
| tar -xz -C /usr/local/bin hugo
15+
16+
# Verify tools
17+
RUN hugo version && go version && node -v && npm -v
18+
19+
COPY . .
20+
21+
# Build Academy pages
22+
RUN make academy-setup
23+
RUN make academy-prod

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ update-module:
4343
fi && \
4444
echo "Updating Hugo module: $(module) to version $(version)" && \
4545
hugo mod get $(module)@$(version)
46+
47+
sync-with-cloud:
48+
mkdir -p ../meshery-cloud/academy
49+
rsync -av --delete public/ ../meshery-cloud/academy/

0 commit comments

Comments
 (0)