Create Dockerfile
This commit is contained in:
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@@ -0,0 +1,23 @@
|
||||
FROM node:lts-alpine
|
||||
|
||||
RUN apk update
|
||||
|
||||
RUN apk add xdg-utils
|
||||
|
||||
RUN npm install -g pnpm
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN pnpm install
|
||||
|
||||
COPY . .
|
||||
|
||||
# convert csv to json
|
||||
# automatically executed when postinstall
|
||||
RUN pnpm convert
|
||||
|
||||
EXPOSE 3333
|
||||
|
||||
ENTRYPOINT ["pnpm", "dev"]
|
||||
Reference in New Issue
Block a user