mirror of
https://github.com/len0rd/personal-website.git
synced 2025-03-01 03:51:57 -05:00
fix dockerfile and prestart
This commit is contained in:
parent
6a3164fd33
commit
932c17d274
|
@ -1,4 +1,4 @@
|
||||||
FROM node:14
|
FROM node:14-alpine
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
@ -10,9 +10,16 @@ COPY package*.json ./
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
RUN apk add --no-cache python3 bash \
|
||||||
|
&& ln -sf python3 /usr/bin/python
|
||||||
|
|
||||||
# Bundle app source
|
# Bundle app source
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN python3 -m ensurepip \
|
||||||
|
&& pip3 install --no-cache --upgrade pip setuptools \
|
||||||
|
&& pip3 install -r pip-requirements.txt
|
||||||
|
|
||||||
EXPOSE 8090
|
EXPOSE 8090
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
|
|
|
@ -5,9 +5,7 @@
|
||||||
// md changes), it is more efficient in
|
// md changes), it is more efficient in
|
||||||
// that we aren't converting MD -> ejs
|
// that we aren't converting MD -> ejs
|
||||||
// on EVERY request
|
// on EVERY request
|
||||||
const showdown = require('showdown'),
|
const fs = require('fs'),
|
||||||
showdownHighlight = require("showdown-highlight"),
|
|
||||||
fs = require('fs'),
|
|
||||||
mkdirp = require('mkdirp'),
|
mkdirp = require('mkdirp'),
|
||||||
recipeInputDir = './recipes/',
|
recipeInputDir = './recipes/',
|
||||||
recipeOutputDir = './views/partials/md/recipes/',
|
recipeOutputDir = './views/partials/md/recipes/',
|
||||||
|
|
Loading…
Reference in a new issue