setting up fly

This commit is contained in:
Oleg Isonen committed 2022-05-21 19:56:12 +02:00
1 parent 27284465da
commit 742717e6d7
3 files changed
+6 -9

No files matched your search

+4 -7
View File
@@ -12,8 +12,8 @@ FROM base as deps
WORKDIR /myapp
ADD package.json package-lock.json ./
RUN npm install --production=false
ADD package.json yarn.lock ./
RUN yarn
# Setup production node_modules
FROM base as production-deps
@@ -21,7 +21,7 @@ FROM base as production-deps
WORKDIR /myapp
COPY --from=deps /myapp/node_modules /myapp/node_modules
ADD package.json package-lock.json ./
ADD package.json yarn.lock ./
RUN npm prune --production
# Build the app
@@ -31,11 +31,8 @@ WORKDIR /myapp
COPY --from=deps /myapp/node_modules /myapp/node_modules
ADD prisma .
RUN npx prisma generate
ADD . .
RUN npm run build
RUN yarn build
# Finally, build the production image with minimal footprint
FROM base
+1 -1
View File
@@ -1,4 +1,4 @@
app = "webstudio.is"
app = "webstudio-dev"
kill_signal = "SIGINT"
kill_timeout = 5
+1 -1
View File
@@ -5,7 +5,7 @@
"scripts": {
"build": "remix build",
"dev": "node -r dotenv/config node_modules/.bin/remix dev",
"postinstall": "remix setup node && yarn migrate && yarn generate",
"prepare": "remix setup node && yarn migrate && yarn generate",
"typecheck": "tsc -b",
"lint": "eslint . --ext .ts,.tsx --max-warnings 0",
"test": "jest",