add Dockerfile

This commit is contained in:
2021-02-17 12:56:05 +01:00
parent 9ec370a027
commit 21261bce7e
3 changed files with 15 additions and 1 deletions

1
.dockerignore Normal file
View File

@@ -0,0 +1 @@
node_modules

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:14
EXPOSE 3333
WORKDIR /usr/src/artsite
COPY package.json package.json
RUN yarn build
COPY . .
CMD ["yarn", "start"]

View File

@@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "node --optimize-for-size --max-old-space-size=4096 node_modules/@nuxt/typescript-runtime/bin/nuxt-ts.js",
"dev": "nuxt-ts",
"build": "nuxt-ts build",
"start": "nuxt-ts start",
"generate": "nuxt-ts generate"