summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorVladyslav Samoilenko <101016860+saymolet@users.noreply.github.com>2024-05-02 00:30:22 +0300
committerGitHub <noreply@github.com>2024-05-01 23:30:22 +0200
commit39f07047426cadca624d491b31e7c36c67fae9e8 (patch)
treefda9e734ab906bd66f4f017b04487ed53162282b /Dockerfile
parenteebcae983922c1757ade923bfdc8421e6a9b5efe (diff)
Added Dockerfile (#82)
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5aa44d6
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,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