Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion templates/Dockerfile.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ RUN cd bundle/bundle/programs/server && meteor npm install
# Build application
RUN <%- mountSecrets %><%= build %>

<% if (devDependencies && !options.dev && !nestjs && !adonisjs && !prismaSeed) { -%>
<% if (devDependencies && !options.dev && !nestjs && !adonisjs && !prismaSeed && !nuxtjs) { -%>
# Remove development dependencies
RUN <%- buildCache %><%- packagerPrune %>

Expand Down Expand Up @@ -188,6 +188,8 @@ COPY --from=build /app/bundle/bundle /app
COPY --from=build /app/.next/standalone /app
COPY --from=build /app/.next/static /app/.next/static
COPY --from=build /app/public /app/public
<% } else if (nuxtjs) { -%>
COPY --from=build /app/.output /app/.output
<% } else { -%>
COPY --from=build /app /app
<% } -%>
Expand Down
2 changes: 1 addition & 1 deletion test/frameworks/nuxt-prisma/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ RUN wget https://github.com/benbjohnson/litestream/releases/download/v0.3.13/lit
rm litestream-v0.3.13-linux-amd64.deb

# Copy built application
COPY --from=build /app /app
COPY --from=build /app/.output /app/.output

# Setup sqlite3 on a separate volume
RUN mkdir -p /data
Expand Down
5 changes: 1 addition & 4 deletions test/frameworks/nuxt/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,12 @@ COPY . .
# Build application
RUN yarn run build

# Remove development dependencies
RUN yarn install --production=true


# Final stage for app image
FROM base

# Copy built application
COPY --from=build /app /app
COPY --from=build /app/.output /app/.output

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
Expand Down
10 changes: 3 additions & 7 deletions test/frameworks/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "nuxt",
"dev": "nuxt dev",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate"
},
"dependencies": {
"core-js": "^3.32.1",
"nuxt": "^2.17.1",
"vue": "^2.7.14",
"vue-server-renderer": "^2.7.14",
"vue-template-compiler": "^2.7.14"
"nuxt": "^3.16.1"
},
"packageManager": "yarn@1.22.21",
"devDependencies": {}
}
Loading