init commit
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user