containers/standardnotes-web/Dockerfile

26 lines
633 B
Docker

FROM node:16-alpine AS builder
ARG SN_TAG=@standardnotes/web@3.72.4
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 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" ]