FIX: name pegazdev not .dev
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -7,19 +7,17 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY package-lock.json .
|
COPY package-lock.json .
|
||||||
COPY .env .
|
COPY config.sh .
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
# 2 - CONFIGURE
|
# 2 - CONFIGURE
|
||||||
FROM install AS configure
|
FROM install AS configure
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY .env .
|
COPY config.sh .
|
||||||
|
|
||||||
RUN sed -i "s|sqlite|postgresql|g" prisma/schema.prisma
|
|
||||||
RUN source .env && sed -i "s|DATABASE_URL=.*|DATABASE_URL=postgresql://$NAME_DB:$PASSWORD_DB@evilspins-db/$NAME_DB?schema=public|g" .env
|
|
||||||
# avoid conflict with nuxt build:
|
# avoid conflict with nuxt build:
|
||||||
RUN sed -i "s|PORT=.*||g" .env
|
RUN sed -i "s|PORT=.*||g" config.sh
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
@@ -30,11 +28,10 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY --from=install /app/node_modules /app/node_modules
|
COPY --from=install /app/node_modules /app/node_modules
|
||||||
COPY --from=configure /app /app
|
COPY --from=configure /app /app
|
||||||
RUN cp /app/.env /app/.output/server/
|
|
||||||
|
|
||||||
ENV NUXT_HOST=0.0.0.0
|
ENV NUXT_HOST=0.0.0.0
|
||||||
ARG NUXT_APP_VERSION
|
ARG NUXT_APP_VERSION
|
||||||
ENV NUXT_APP_VERSION=${NUXT_APP_VERSION}
|
ENV NUXT_APP_VERSION=${NUXT_APP_VERSION}
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
CMD source .env && npx prisma db push && node .output/server/index.mjs
|
CMD source config.sh && npx prisma db push && node .output/server/index.mjs
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "pegaz.dev",
|
"name": "pegazdev",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
Reference in New Issue
Block a user