-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (25 loc) · 940 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM node:16.13
RUN mkdir -p /app
WORKDIR /app
# copy the app, note .dockerignore
COPY . /app/
# copy generated favicons into new nuxt3 stucture, public folder instead of static
RUN mkdir -p /app/public
# RUN cp -r /app/static/* /app/public
RUN yarn install
# build necessary, even if no static files are needed,
# since it builds the server as well
ARG NUXT_PUBLIC_AUTH_SECRET
ARG NUXT_PUBLIC_AUTH_ORIGIN
ARG NUXT_PUBLIC_AUTH_ENDPOINT
ARG NUXT_PUBLIC_USER_ENDPOINT
ARG NUXT_PUBLIC_GRAPHQL_ENDPOINT
ARG NUXT_PUBLIC_GRAPHQL_AUTH_ENDPOINT
ENV NUXT_PUBLIC_AUTH_SECRET=${NUXT_PUBLIC_AUTH_SECRET}
ENV NUXT_PUBLIC_AUTH_ORIGIN=${NUXT_PUBLIC_AUTH_ORIGIN}
ENV NUXT_PUBLIC_AUTH_ENDPOINT=${NUXT_PUBLIC_AUTH_ENDPOINT}
ENV NUXT_PUBLIC_USER_ENDPOINT=${NUXT_PUBLIC_USER_ENDPOINT}
ENV NUXT_PUBLIC_GRAPHQL_ENDPOINT=${NUXT_PUBLIC_GRAPHQL_ENDPOINT}
ENV NUXT_PUBLIC_GRAPHQL_AUTH_ENDPOINT=${NUXT_PUBLIC_GRAPHQL_AUTH_ENDPOINT}
RUN env
RUN yarn run build