#Deployment question

9 messages · Page 1 of 1 (latest)

waxen sinewBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

silk merlin
#

what does your dockerfile looks like actually ?

#

Just create your dockerfile and specify which files you are moving to your container (in your case the build folder for Next.js) `

Example :

# Use an official Node.js runtime as a base image
FROM node:14-alpine

# Set the working directory inside the container
WORKDIR /usr/src/app

# Copy package.json and package-lock.json to the working directory
COPY package*.json ./

# Install dependencies
RUN npm install --production

# Copy the built Next.js application to the container
COPY .next ./.next

# Expose the port that your application will run on
EXPOSE 3000

# Define the command to run your application
CMD ["npm", "start"]
#

I mean yeah, since they don't have access to the source code that should be possible but regarding security idk

mild bear
mild bear
#

wdym?

#

if you build with that dockerfile, it won't include any source code

#

it is