mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
406 B
16 lines
406 B
ARG NODE_VERSION="13.7"
|
|
FROM node:${NODE_VERSION}-alpine AS frontend-builder
|
|
|
|
COPY frontend/ /app/
|
|
WORKDIR /app
|
|
|
|
RUN apk add -U --no-cache git python3 make g++ \
|
|
&& yarn install \
|
|
&& yarn build \
|
|
&& apk del --no-cache git make g++
|
|
|
|
FROM nginx:1.17.4-alpine AS runtime
|
|
|
|
COPY --from=frontend-builder /app/dist /var/www/html
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
COPY nginx/nginx.conf /etc/nginx/conf.d
|