mirror of
https://github.com/Eugeny/tabby-web.git
synced 2026-08-16 22:36:02 +01:00
wip
This commit is contained in:
3
frontend/.dockerignore
Normal file
3
frontend/.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
||||
build
|
||||
build-server
|
||||
node_modules
|
||||
16
frontend/Dockerfile
Normal file
16
frontend/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user