standardnotes-server/Dockerfile

34 lines
543 B
Text
Raw Permalink Normal View History

FROM node:20.10.0-alpine
2023-02-03 10:26:06 +00:00
ENV NODE_ENV production
2023-02-06 12:35:58 +00:00
RUN apk add --update --no-cache \
g++ \
make \
2023-02-06 12:35:58 +00:00
openssl \
curl \
bash \
py3-pip
2023-02-03 10:26:06 +00:00
RUN pip install --no-cache-dir --upgrade --break-system-packages supervisor
2023-02-03 10:26:06 +00:00
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
2023-02-06 12:35:58 +00:00
RUN corepack enable
2023-02-03 10:26:06 +00:00
RUN yarn install --immutable
2023-02-06 14:08:03 +00:00
RUN CI=true yarn build
2023-02-03 10:26:06 +00:00
RUN mkdir -p /opt/shared/uploads
2023-02-10 11:58:20 +00:00
2023-02-06 14:08:03 +00:00
ENTRYPOINT ["docker-entrypoint.sh"]