init commit

This commit is contained in:
2025-09-08 23:18:15 +05:30
parent 182bdc2b5a
commit 38a464e907
5 changed files with 293 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM alpine:3.22
# update and install latex packages
RUN echo test
RUN apk update
RUN apk add entr texlive-full
# creating container structure
ENV mainFile=""
RUN addgroup -g 1000 -S ltxgroup && adduser -u 1000 -S -G ltxgroup ltxuser
RUN mkdir -p /app && chown -R ltxuser:ltxgroup /app
WORKDIR /app
# copy install scripts
USER ltxuser
COPY --chown=ltxuser:ltxgroup startup.sh /app/startup.sh
RUN chmod +x /app/startup.sh
RUN echo arstearst
COPY --chown=ltxuser:ltxgroup setupFiles /app/setupFiles
RUN chmod +x /app/setupFiles/install.sh
CMD [ "sh", "-c", "/app/startup.sh ${mainFile}" ]
# CMD [ "ls", "|", "entr", "ls", "-hla" ]