summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 5aa44d6797099483b8198d6388ab2aa5c7693841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM node:13.14.0-alpine as build

WORKDIR /build
COPY .babelrc package.json webpack.config.js yarn.lock ./

RUN set -eux \
    & apk add \
        --no-cache \
        yarn \
	python3

RUN yarn
COPY src ./src
RUN yarn run build

FROM nginx:1.25.5-alpine as nginx

COPY --from=build /build/dist/  /usr/share/nginx/html
EXPOSE 80/tcp