Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: updating docker container with newer nginx version, fixing issues with the pdf viewer

Ilian Sapundshievbb707ad84ab4
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 859e5d6c3..969a12106 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,19 +1,18 @@
-FROM nginx:1.25.2-alpine
+FROM nginx:1.27.1-alpine
LABEL org.opencontainers.image.title="TagSpaces Web"
-LABEL org.opencontainers.image.description="Official build of TagSpaces for Docker."
+LABEL org.opencontainers.image.description="Official Docker image for TagSpaces"
LABEL org.opencontainers.image.url="https://www.tagspaces.org"
LABEL org.opencontainers.image.source="https://github.com/tagspaces/tagspaces"
LABEL org.opencontainers.image.documentation="https://docs.tagspaces.org"
LABEL org.opencontainers.image.authors="[email protected]"
LABEL org.opencontainers.image.vendor="TagSpaces Authors <[email protected]>"
-LABEL org.opencontainers.image.version="5.5.2"
-ADD https://github.com/tagspaces/tagspaces/releases/download/v5.5.2/tagspaces-web-5.5.2.zip .
+LABEL org.opencontainers.image.version="6.0.0.1"
+RUN echo "types { application/javascript js mjs; }" > /etc/nginx/conf.d/types.conf
+ADD https://github.com/tagspaces/tagspaces/releases/download/v6.0.0/tagspaces-web-6.0.0.zip .
RUN mv tagspaces-web-* tagspaces-web.zip
-# COPY tagspaces-web.zip .
RUN unzip tagspaces-web.zip
+RUN mv web/extconfig.tmpl.js web/extconfig.js
RUN rm -rf /usr/share/nginx/html
RUN mv web /usr/share/nginx/html
-# cleanup
RUN rm -rf tagspaces-web.zip
-
EXPOSE 80
diff --git a/docker/dev.md b/docker/dev.md
new file mode 100644
index 000000000..6f0cb5832
--- /dev/null
+++ b/docker/dev.md
@@ -0,0 +1,9 @@
+# Developer Documentation
+
+## Building docker container
+
+docker build . -t tagspaces-lite-web:6.0.0.1
+
+## Pushing the image to Docker Hub
+
+docker push tagspaces-lite-web:6.0.0.1