blob: 16cc8c1e5afed07651c0a1528cc7dfb3bde25e3b (
plain)
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
|
FROM node:18-slim AS build-ui
WORKDIR /app
COPY app/ ./
RUN yarn install
RUN yarn build
FROM python:3.11-slim AS api
LABEL org.opencontainers.image.source="https://github.com/PacketParker/LinkLogger"
LABEL maintainer="parker <mailto:contact@pkrm.dev>"
WORKDIR /
COPY . .
RUN chmod +x linklogger.sh
RUN pip install -r requirements.txt
RUN apt-get update && apt-get install -y nginx && \
rm -rf /var/lib/apt/lists/*
# Move the built files into the nginx share
COPY --from=build-ui /app/dist /usr/share/nginx/html
# Replace the default site with the LinkLogger config
COPY nginx.conf /etc/nginx/sites-enabled/default
CMD ["./linklogger.sh"]
|