Docker test
This commit is contained in:
parent
9f607ff14d
commit
02acb9f4de
1 changed files with 3 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
||||||
FROM node:lts AS build
|
FROM node:lts AS build
|
||||||
WORKDIR /app
|
WORKDIR /site
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm i
|
RUN npm i
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM forgejo.neshweb.net/ci-docker-images/website-serve:latest AS runtime
|
FROM forgejo.neshweb.net/ci-docker-images/website-serve:latest AS runtime
|
||||||
|
|
||||||
COPY --from=build /app/dist /public
|
COPY --from=build /site/dist /public
|
||||||
COPY --from=build /app/serve.json /public/serve.json
|
COPY --from=build /site/serve.json /public/serve.json
|
||||||
|
|
||||||
ENV PORT 8081
|
ENV PORT 8081
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
Loading…
Reference in a new issue