standardnotes-server/Dockerfile
2023-02-06 06:52:11 +01:00

30 lines
No EOL
479 B
Docker

FROM node:18.13.0-alpine
RUN apk add --update \
bash \
curl \
py3-pip \
openssl \
&& rm -rf /var/cache/apk/*
ENV NODE_ENV production
RUN corepack enable
RUN pip install --no-cache-dir --upgrade supervisor
RUN mkdir -p /var/lib/server/logs
COPY docker/supervisord.conf /etc/supervisord.conf
COPY docker/docker-entrypoint.sh /usr/local/bin/
COPY . /opt/server
WORKDIR /opt/server
RUN yarn install --immutable
RUN yarn build
ENTRYPOINT ["docker-entrypoint.sh"]