Browse Source

update docker files

master
James Fenn 3 months ago
parent
commit
b19540744e
5 changed files with 7 additions and 4 deletions
  1. +2
    -0
      .dockerignore
  2. +1
    -0
      Dockerfile
  3. +1
    -2
      Makefile
  4. +1
    -0
      docker-compose.yml
  5. +2
    -2
      package.json

+ 2
- 0
.dockerignore View File

@@ -1,4 +1,6 @@
node_modules
public
server/build
npm-debug.log
package-install.lock
pnpm-lock.yaml


+ 1
- 0
Dockerfile View File

@@ -1,5 +1,6 @@
FROM node:12-alpine

RUN apk add make
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
COPY package*.json ./


+ 1
- 2
Makefile View File

@@ -19,11 +19,10 @@ package-install.lock: package.json

public/global.css: public/global.scss
${NPX} sass $^ $@.tmp
${NPX} -p postcss-cli postcss $@.tmp -o $@
${NPX} -p postcss-cli@7.1.2 postcss $@.tmp -o $@
rm $@.tmp $@.tmp.map

build: install public/global.css
${NPX} @11ty/eleventy

serve: install public/global.css
${NPM} run dev


+ 1
- 0
docker-compose.yml View File

@@ -4,6 +4,7 @@ services:
build:
context: .
dockerfile: Dockerfile
image: horrificdev
command: npm run start
volumes:
- .:/home/node/app/


+ 2
- 2
package.json View File

@@ -4,7 +4,7 @@
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "cd server/build; node index.js",
"start": "make build; rollup -c; cd server/build; node index.js",
"validate": "svelte-check"
},
"devDependencies": {
@@ -27,7 +27,7 @@
"postcss-cli": "^7.1.1",
"rollup": "^2.3.4",
"rollup-plugin-livereload": "^1.0.0",
"rollup-plugin-svelte": "^5.0.3",
"rollup-plugin-svelte": "6.1.1",
"rollup-plugin-terser": "^5.1.2",
"sass": "^1.26.10",
"svelte": "^3.0.0",


Loading…
Cancel
Save