fortawesome-font-awesome
SUCCESS
15m 38s
History Source
SummaryIterations2Transcript16Dockerfile
Dockerfile27 lines · 720 chars
# Multi-stage Dockerfile for Font Awesome Free package in this repo

FROM node:22.22.3-alpine3.23 AS builder
WORKDIR /work

# Copy the repository into the builder stage
COPY . .

# Build/install dependencies for the fontawesome-free package
RUN cd js-packages/@fortawesome/fontawesome-free && npm install

FROM node:22.22.3-alpine3.23

# Runtime image
WORKDIR /app

# Copy the built assets from the builder stage
COPY --from=builder /work/js-packages/@fortawesome/fontawesome-free /app/fontawesome-free

# Install a lightweight static file server to serve the assets
RUN npm install -g http-server

EXPOSE 8080

# Serve the Font Awesome Free package assets
CMD ["sh", "-lc", "http-server /app/fontawesome-free -p 8080"]