Giter Club home page Giter Club logo

docker-lapis's Introduction

Docker Lapis

Docker base image for Lapis, see https://hub.docker.com/r/lapytopy/lapis/, based on MilesChou's Dockerfile.

The repository is a simple image with OpenResty and Lapis Framework.

What's different from origin repository

  • arm64 Images (most important)
  • Updated lapis and luarocks
  • Doesn't remove build deps, to prevent some rocks failing to install

Usage for GitHub Container Registry

See GitHub Container Registry

For development

Create a basic application with moonscript

docker run \
  -w /app \
  --mount type=bind,source="$(pwd)"/src,target=/app \
  --rm -it ghcr.io/ltlapy/docker-lapis:debian \
  lapis new --moonscript

Run directly from lapis image

docker run \
  -w /app \
  -p 8080 \
  --mount type=bind,source="$(pwd)"/src,target=/app \
  --rm -it lapytopy/lapis:latest \
  /bin/bash -c "moonc . && lapis server"

Note You can pin your dependencies by running following commands, for prevent dependency corruption: luarocks build --only-deps

Warning If you can't access to the service while running, try changing port number to another.

Supported tags and respective Dockerfile links

Thanks

docker-lapis's People

Contributors

mileschou avatar ltlapy avatar vadi2 avatar

docker-lapis's Issues

logs가 workdir에 쌓인다

기본값으로 각종 로그가 workdir에 쌓이게 되어 있어요.
지저분해요.
왠만하면 별도의 디렉토리로 지정하고 싶어요.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.