Move frontend into front end folder. Add build stuff to proto file. Finaly figured out the Vue bullshit.
This commit is contained in:
23
frontend/Dockerfile
Normal file
23
frontend/Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM node:22.16
|
||||
|
||||
WORKDIR /srv/proto
|
||||
|
||||
COPY proto .
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
WORKDIR /srv/rush-character-archive
|
||||
|
||||
COPY rush-character-archive/package.json .
|
||||
|
||||
RUN npm install
|
||||
|
||||
RUN npm i -g serve
|
||||
|
||||
COPY frontend/. .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["serve", "-s", "dist"]
|
||||
Reference in New Issue
Block a user