Compare commits
No commits in common. "5f7d957db3c20ab369abdbb06912ced654fdff9c" and "d321b6660c5dae9bbb013af7c66692a2a5fa18de" have entirely different histories.
5f7d957db3
...
d321b6660c
6 changed files with 10 additions and 32 deletions
|
@ -3,8 +3,3 @@
|
|||
.gitignore
|
||||
.git
|
||||
docker-compose.build.yml
|
||||
node_modules/
|
||||
.env.example
|
||||
LICENSE.md
|
||||
docker-compose.yml
|
||||
README.md
|
|
@ -1 +0,0 @@
|
|||
TAG=0.0.1
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
|||
node_modules/
|
||||
dist/
|
||||
service-worker.build.js
|
||||
.env
|
||||
service-worker.build.js
|
|
@ -1,10 +1,13 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: alpine:3.14
|
||||
image: node:20.2.0-alpine3.16
|
||||
secrets: [docker_password, docker_username]
|
||||
commands:
|
||||
# Install deps
|
||||
- apk add docker docker-compose jq
|
||||
# Build app
|
||||
- yarn install --frozen-lockfile
|
||||
- yarn build
|
||||
# Log into docker registry
|
||||
- echo "$${DOCKER_PASSWORD}" | docker login --password-stdin --username "$${DOCKER_USERNAME}" git.webdeploy.it
|
||||
- echo "TAG=$(jq -r .version ./package.json)" >> .env
|
||||
|
|
19
Dockerfile
19
Dockerfile
|
@ -1,16 +1,7 @@
|
|||
FROM node:18 AS build
|
||||
|
||||
WORKDIR /usr
|
||||
COPY package.json ./
|
||||
COPY yarn.lock ./
|
||||
RUN yarn install --frozen-lockfile
|
||||
COPY . ./
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY --from=build /usr/dist /usr/share/nginx/html
|
||||
#COPY nginx.conf /etc/nginx/nginx.conf
|
||||
FROM nginx
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["nginx","-g","daemon off;"]
|
||||
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
COPY ./dist/ /usr/share/nginx/html/
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
web-app:
|
||||
image: git.webdeploy.it/pianello/pianello-web-app:latest
|
||||
restart: always
|
||||
container_name: pianello-web-app
|
||||
ports:
|
||||
- 127.0.0.1:8080:80'
|
Loading…
Reference in a new issue