mirror of
https://github.com/Eugeny/tabby-web.git
synced 2025-06-07 21:19:53 +00:00
wip
This commit is contained in:
parent
badc8302ce
commit
83c5e11a61
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,6 +1,4 @@
|
||||
__pycache__
|
||||
.vscode
|
||||
.env
|
||||
.mypy_cache
|
||||
app-dist
|
||||
db.sqlite3
|
||||
.mypy_cache
|
||||
|
BIN
__pycache__/gunicorn.conf.cpython-37.pyc
Normal file
BIN
__pycache__/gunicorn.conf.cpython-37.pyc
Normal file
Binary file not shown.
2
backend/.gitignore
vendored
Normal file
2
backend/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
__pycache__
|
||||
db.sqlite3
|
17
backend/Dockerfile
Normal file
17
backend/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM node:12-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn
|
||||
COPY webpack* tsconfig.json ./
|
||||
COPY src src
|
||||
RUN yarn run build
|
||||
RUN yarn run build:server
|
||||
|
||||
FROM node:12-alpine AS package
|
||||
WORKDIR /app
|
||||
COPY --from=0 /app/build build
|
||||
COPY --from=0 /app/build-server build-server
|
||||
COPY package.json .
|
||||
|
||||
CMD ["npm", "start"]
|
12
backend/cloudbuild.yaml
Normal file
12
backend/cloudbuild.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
steps:
|
||||
- name: 'gcr.io/cloud-builders/docker'
|
||||
dir: 'backend'
|
||||
args:
|
||||
- build
|
||||
- '-t'
|
||||
- '${_DOCKER_PUBLISH_URL}'
|
||||
- '--cache-from'
|
||||
- '${_DOCKER_PUBLISH_URL}'
|
||||
- '--build-arg'
|
||||
- 'BACKEND_URL=${_BACKEND_URL}'
|
||||
- '.'
|
0
poetry.lock → backend/poetry.lock
generated
0
poetry.lock → backend/poetry.lock
generated
@ -1,5 +1,6 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM node:12-alpine AS build
|
||||
ARG BACKEND_URL
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn
|
||||
|
@ -4,9 +4,11 @@ steps:
|
||||
args:
|
||||
- build
|
||||
- '-t'
|
||||
- '${_DOCKER_PUBLISH_URL}'
|
||||
- '${_DOCKER_TAG}'
|
||||
- '--cache-from'
|
||||
- '${_DOCKER_PUBLISH_URL}'
|
||||
- '${_DOCKER_TAG}'
|
||||
- '--build-arg'
|
||||
- 'BACKEND_URL=${_BACKEND_URL}'
|
||||
- '.'
|
||||
|
||||
images: ['${_DOCKER_TAG}']
|
||||
|
Loading…
x
Reference in New Issue
Block a user