weather-app/Dockerfile
Argiris Deligiannidis 35c742d9f4
All checks were successful
continuous-integration/drone/push Build is passing
revert 5ce169a3b2086c9d81ac2fd4d22ae38523494cfd
revert Update Dockerfile
2024-04-14 23:16:16 +00:00

29 lines
597 B
Docker

# Slim version of Node
FROM node:20-slim
# Set the working directory inside the container
WORKDIR /code
# Copy the application code to the working directory
COPY ./*.ts /code/
COPY ./*.json /code/
COPY ./assets /code/assets
COPY ./components /code/components
COPY ./pages /code/pages
COPY ./public /code/public
#Install Dependencies
RUN npm install --loglevel verbose
#Build app
RUN npx nuxi build
# Expose the port on which the application will run
EXPOSE 3000
#Environment Variable
ENV HOST 0.0.0.0
# Run the application using the built index.mjs
CMD ["node", ".output/server/index.mjs"]