proxy/apps/node/Dockerfile

20 lines
444 B
Docker
Raw Normal View History

2023-11-16 11:56:52 +00:00
FROM fascinated/docker-images:node-pnpm-latest
2023-11-16 12:24:38 +00:00
# Set the working directory to /app
WORKDIR /app
2023-11-16 12:22:10 +00:00
2023-11-16 12:24:38 +00:00
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in package.json
RUN pnpm install
# Make port 3000 available to the world outside this container
2023-11-16 11:56:52 +00:00
EXPOSE 3000
2023-11-16 12:24:38 +00:00
# Define environment variable
ENV NODE_ENV=production
# Run app.js when the container launches
CMD ["pnpm", "start"]