2023-12-15 00:30:26 +00:00
|
|
|
# Build site using Node JS
|
|
|
|
FROM node:21-slim
|
|
|
|
|
2023-12-18 17:49:33 +00:00
|
|
|
RUN apt-get update && apt-get install -y nginx
|
|
|
|
|
2023-04-22 18:06:06 +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
|
|
|
|
|
|
|
|
COPY package.json .
|
|
|
|
RUN npm i
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2023-04-20 22:47:29 +00:00
|
|
|
ENV NODE_ENV production
|
2023-04-20 05:40:12 +00:00
|
|
|
|
2023-04-20 23:42:30 +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"
|
2023-04-21 22:02:15 +00:00
|
|
|
ENV CATEGORIES "normal"
|
2023-04-21 22:43:43 +00:00
|
|
|
ENV BGCOLOR "theme(colors.slate.50)"
|
2023-04-21 22:50:54 +00:00
|
|
|
ENV BGCOLORDARK "theme(colors.gray.950)"
|
2023-04-22 21:50:09 +00:00
|
|
|
ENV NEWWINDOW "true"
|
2023-04-20 23:42:30 +00:00
|
|
|
|
2023-04-22 18:06:06 +00:00
|
|
|
COPY version /
|
2023-12-14 23:48:21 +00:00
|
|
|
EXPOSE 4173
|
2023-04-22 18:06:06 +00:00
|
|
|
|
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
|
|
|
|
2023-12-14 23:48:21 +00:00
|
|
|
CMD ["npm", "run", "start"]
|