docker cleanup

This commit is contained in:
Eugene Pankov
2021-11-21 12:50:38 +01:00
parent 25bd18a39d
commit 36a5a9889f
8 changed files with 5 additions and 88 deletions

View File

@@ -1,3 +0,0 @@
build
build-server
node_modules

View File

@@ -1,20 +0,0 @@
# syntax=docker/dockerfile:1
FROM node:12-alpine AS build
ARG BACKEND_URL
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn
COPY webpack* tsconfig.json ./
COPY assets assets
COPY src src
COPY theme theme
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"]

View File

@@ -1,12 +0,0 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
dir: 'frontend'
args:
- build
- '-t'
- '${_DOCKER_TAG}'
- '--cache-from'
- '${_DOCKER_TAG}'
- '.'
images: ['${_DOCKER_TAG}']