This commit is contained in:
Kamil Klecha
2021-06-02 13:40:03 +02:00
parent 3320858efa
commit 18f2b8ad9a
2 changed files with 21 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

8
drone.yml Normal file
View File

@@ -0,0 +1,8 @@
steps:
- name: docker
image: plugins/docker
settings:
repo: docker-registry.kamilklecha.dev/vetro/fakesw
dockerfile: ./Dockerfile
tags:
- latest