containers/standardnotes-web/Dockerfile
Peter Cai ff1f8bda1e
All checks were successful
/ build-image (push) Successful in 5m43s
bump standardnotes-web
2024-09-28 09:46:39 -04:00

33 lines
1 KiB
Docker

FROM node:16-alpine AS builder
ARG SN_TAG=@standardnotes/web@3.195.6
RUN apk add git
RUN git clone --depth=1 https://github.com/standardnotes/app -b ${SN_TAG}
RUN cd app && yarn install && yarn build:web
FROM docker.io/joseluisq/static-web-server:2-alpine
ENV SN_WEB_PUBLIC_URL=https://app.standardnotes.com
ENV SN_WEB_DEFAULT_SYNC_SERVER=https://api.standardnotes.com
ENV SN_WEB_DEFAULT_FILES_HOST=https://files.standardnotes.com
COPY --from=builder /app/packages/web/dist /public
COPY start.sh /
RUN chmod +x /start.sh
# Disable cache-control headers sent by the container
ENV SERVER_CACHE_CONTROL_HEADERS=false
CMD [ "/start.sh" ]
LABEL org.opencontainers.image.vendor="Standard Notes" \
org.opencontainers.image.url="https://github.com/standardnotes" \
org.opencontainers.image.title="Standard Notes Web App" \
org.opencontainers.image.description="An encrypted note-taking app" \
org.opencontainers.image.version="${SN_TAG}" \
org.opencontainers.image.documentation="https://github.com/standardnotes"