-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 746 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (25 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Multi-stage build: Build static assets
# This allows us to not include Node within the final container
FROM node:24 AS node_builder
RUN mkdir -p /app/dist
WORKDIR /app
COPY src /app/src
COPY public /app/public
COPY vendor /app/vendor
COPY .npmrc /app/package.json
COPY astro.config.ts /app/astro.config.ts
COPY package.json /app/package.json
COPY package-lock.json /app/package-lock.json
COPY tsconfig.json /app/tsconfig.json
RUN \
npm ci --no-audit --force && \
npm run build
FROM httpd:2.4 AS base
# Set version label
LABEL maintainer="lycheeorg"
# Environment variables
ENV PUID='1000'
ENV PGID='1000'
ENV USER='lychee'
ENV PHP_TZ=UTC
COPY --from=node_builder --chown=www-data:www-data /app/dist/ /usr/local/apache2/htdocs/