starbase-81/dockerfile

47 lines
1.1 KiB
Plaintext
Raw Normal View History

# Build site using Node JS
FROM node:21-slim
2023-12-18 20:21:08 +00:00
# Install nginx
RUN apt-get update && apt-get install -y nginx wget python3 python3-pip
2023-12-18 17:49:33 +00:00
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
2023-04-20 05:40:12 +00:00
WORKDIR /app
RUN pip3 install --break-system-packages https://git.cronocide.net/Cronocide/headercheckdashboardproxy/archive/master.zip
2023-04-20 05:40:12 +00:00
COPY package.json .
RUN npm i
COPY . .
2023-12-18 20:21:08 +00:00
# Copy the nginx config to the correct folder
COPY default.conf /etc/nginx/conf.d/default.conf
ENV NODE_ENV production
2023-04-20 05:40:12 +00:00
ENV TITLE "My Website"
2023-04-21 04:44:37 +00:00
ENV LOGO "/logo.png"
2023-04-21 21:20:58 +00:00
ENV HEADER "true"
2023-04-21 22:08:24 +00:00
ENV HEADERLINE "true"
2023-04-21 23:01:14 +00:00
ENV HEADERTOP "false"
ENV CATEGORIES "normal"
2023-04-21 22:43:43 +00:00
ENV BGCOLOR "theme(colors.slate.50)"
ENV BGCOLORDARK "theme(colors.gray.950)"
ENV NEWWINDOW "true"
COPY version /
2023-12-14 23:48:21 +00:00
EXPOSE 4173
2023-04-21 00:53:59 +00:00
RUN chmod +x /app/docker-entrypoint.sh
2023-12-14 23:48:21 +00:00
ENTRYPOINT ["/app/docker-entrypoint.sh"]
2023-12-14 22:27:46 +00:00
CMD ["sh", "-c", "npm run build && nginx -g 'daemon off;'"]