This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Installing LAMP stack | |
sudo apt-get update | |
sudo apt-get install apache2 mysql-server mysql-client php libapache2-mod-php php-mysql phpmyadmin | |
# Note: A few questions are asked during the installation of phpmyadmin. Select apache2 in the first window | |
# using spacebar and use Tabspace and Return key to select options. For most questions, give the recommended | |
# option else search the Internet. | |
# 1.1 Setup MySQL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:2.7.0-alpine as builder | |
RUN apk add \ | |
build-base \ | |
curl \ | |
ca-certificates \ | |
gnupg1 \ | |
libffi-dev \ | |
graphicsmagick \ | |
libsodium-dev \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:12.14-alpine as development | |
RUN apk add python python3 make g++ | |
WORKDIR /usr/src/app | |
COPY . ./ | |
RUN npm install | |
RUN npm run build | |
RUN npm prune --production | |
FROM node:12.14-alpine as production | |
WORKDIR /usr/src/app |