starbase-81/dockerfile

40 lines
883 B
Plaintext
Raw Normal View History

# 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
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 . .
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
2023-12-14 23:48:21 +00:00
CMD ["npm", "run", "start"]