Initial commit
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
FROM node:19 AS node
|
||||
|
||||
# Define environment variables
|
||||
ARG ORIGIN
|
||||
ENV ORIGIN $ORIGIN
|
||||
ARG DATABASE_URL
|
||||
ENV DATABASE_URL $DATABASE_URL
|
||||
|
||||
# Install dependencies
|
||||
WORKDIR /app
|
||||
COPY ./package.json .
|
||||
COPY ./package-lock.json .
|
||||
COPY ./svelte.config.js .
|
||||
RUN npm install
|
||||
|
||||
# Move everything to container
|
||||
COPY . .
|
||||
|
||||
# Build for production
|
||||
RUN npm run build
|
||||
|
||||
# Launch app
|
||||
CMD ["node", "build"]
|
||||
EXPOSE 3000
|
Reference in New Issue
Block a user