This file contains hidden or 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 path/to/your/registry/swift-image:4.2.4 | |
WORKDIR /app | |
RUN apt-get update && \ | |
apt-get -y install libxml2 libbsd0 tzdata libicu55 libcurl3 libatomic1 && \ | |
rm -rf /var/lib/apt/lists/* | |
COPY .build/debug/Run ./Run | |
EXPOSE 8080 | |
ENTRYPOINT ["./Run", "serve"] |
This file contains hidden or 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 rest_framework import serializers | |
from chat import models | |
from chat.utils import choice_to_human_readable | |
from core.helpers import snake_to_camel | |
class VariantSerializer(serializers.ModelSerializer): | |
text = serializers.SerializerMethodField() |
This file contains hidden or 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
import Vapor | |
import FluentProvider | |
import Crypto | |
import Foundation | |
// sourcery: AutoModelGeneratable | |
// sourcery: fromJSON, toJSON, Preparation, Timestampable, Updateable | |
final class Session: Model { | |