Skip to content
Snippets Groups Projects
Commit 687e2c50 authored by Guillaume Samson's avatar Guillaume Samson Committed by Guillaume Samson
Browse files

Add software-stories app

Related to swh/infra/sysadm-environment#4805
parent 54fd8bb6
No related merge requests found
FROM node:19-bullseye
RUN apt-get -y update && \
apt-get -y upgrade && \
npm install -g serve && \
mkdir -p /opt/swh/swh-stories && \
chown -R node:node /opt/swh
USER node
ENV NODE_OPTIONS=--openssl-legacy-provider
WORKDIR /opt/swh/swh-stories
COPY --chown=node:node entrypoint.sh /opt/swh
RUN chmod u+x /opt/swh/entrypoint.sh && \
git clone https://github.com/ScienceStories/swh-stories.git /opt/swh/swh-stories && \
git checkout 04168585b48edb77b3410cfe0e5e06af545bb18c && \
rm package-lock.json && \
npm install --no-audit && \
npm run build
ENTRYPOINT "/opt/swh/entrypoint.sh"
#!/bin/bash
set -e
case "$1" in
"shell")
shift
echo "Running command $@"
exec bash -i "$@"
;;
*)
exec serve -s build
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment