GMOD / Apollo

Genome annotation editor with a Java Server backend and a Javascript client that runs in a web browser as a JBrowse plugin.
http://genomearchitect.readthedocs.io/
Other
128 stars 85 forks source link

convert to multistage docker build #2383

Open nathandunn opened 4 years ago

nathandunn commented 4 years ago
FROM agrdocker/agr_base_linux_env:latest as build-stage
WORKDIR /workdir/agr_ui
ADD . .
RUN npm install
ARG NODE_ENV=production
ENV NODE_ENV ${NODE_ENV}
ARG RELEASE=0.0.0
ENV RELEASE ${RELEASE}
RUN npm run build
RUN npm test
FROM nginx
WORKDIR /workdir/agr_ui/dist
COPY --from=build-stage /workdir/agr_ui/dist /workdir/agr_ui/dist
COPY --from=build-stage /workdir/agr_ui/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 2992
nathandunn commented 4 years ago

https://github.com/alliance-genome/agr_jbrowse_container