-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdockerfile
48 lines (36 loc) · 1.15 KB
/
dockerfile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Build site using Node JS
FROM node:23-slim
# Install nginx and wget
RUN apt-get update && apt-get install -y nginx wget
ARG BUILD_DATE
LABEL \
maintainer="Jordan Roher <jordan@notclickable.com>" \
org.opencontainers.image.authors="Jordan Roher <jordan@notclickable.com>" \
org.opencontainers.image.title="starbase-80" \
org.opencontainers.image.description="A nice app grid of icons for Docker services" \
org.opencontainers.image.created=$BUILD_DATE
WORKDIR /app
COPY package.json .
RUN npm i
COPY . .
# Copy the nginx config to the correct folder
COPY default.conf /etc/nginx/conf.d/default.conf
ENV NODE_ENV=production
ENV TITLE="My Website"
ENV LOGO="/logo.png"
ENV HEADER="true"
ENV HEADERLINE="true"
ENV HEADERTOP="false"
ENV CATEGORIES="normal"
ENV BGCOLOR="theme(colors.slate.50)"
ENV BGCOLORDARK="theme(colors.gray.950)"
ENV CATEGORYBUBBLECOLORLIGHT="theme(colors.white)"
ENV CATEGORYBUBBLECOLORDARK="theme(colors.black)"
ENV THEME="auto"
ENV NEWWINDOW="true"
ENV HOVER="none"
COPY version /
EXPOSE 4173
RUN chmod +x /app/docker-entrypoint.sh
ENTRYPOINT ["/app/docker-entrypoint.sh"]
CMD ["sh", "-c", "npm run build && nginx -g 'daemon off;'"]